This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/test by this push:
new adab0963 fix: avatar use rounded-circle class
adab0963 is described below
commit adab0963199259848f1a43e80bfbfbaa602725f6
Author: shuai <[email protected]>
AuthorDate: Fri Feb 14 15:46:31 2025 +0800
fix: avatar use rounded-circle class
---
ui/src/components/Avatar/index.tsx | 2 +-
ui/src/components/QuestionList/index.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/src/components/Avatar/index.tsx
b/ui/src/components/Avatar/index.tsx
index f5616c85..357beb0c 100644
--- a/ui/src/components/Avatar/index.tsx
+++ b/ui/src/components/Avatar/index.tsx
@@ -54,7 +54,7 @@ const Index: FC<IProps> = ({
}
const roundedCls =
- className && className.indexOf('rounded') !== -1 ? '' : 'rounded';
+ className && className.indexOf('rounded') !== -1 ? '' : 'rounded-circle';
return (
<>
diff --git a/ui/src/components/QuestionList/index.tsx
b/ui/src/components/QuestionList/index.tsx
index 7585c52a..5399da70 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -144,7 +144,7 @@ const QuestionList: FC<Props> = ({
<BaseUserCard
data={li.operator}
className="me-1"
- avatarClass="me-2"
+ avatarClass="me-1"
/>
•
<FormatTime