Skip to content

Commit ab35a9d

Browse files
committedMar 21, 2025·
fix: List avatar size optimization, Views color rule optimization
1 parent 13240be commit ab35a9d

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed
 

‎ui/src/components/BaseUserCard/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Index: FC<Props> = ({
3838
data,
3939
showAvatar = true,
4040
avatarClass = '',
41-
avatarSize = '20px',
41+
avatarSize = '24px',
4242
className = 'small',
4343
avatarSearchStr = 's=48',
4444
showReputation = true,

‎ui/src/components/Counts/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ const Index: FC<Props> = ({
8686
'summary-stat ms-3 flex-shrink-0',
8787
data.views >= 100 * 1000
8888
? 'view-level3'
89-
: data.views >= 1000
89+
: data.views >= 10000
9090
? 'view-level2'
91-
: data.views >= 100
91+
: data.views >= 1000
9292
? 'view-level1'
9393
: '',
9494
)}>

‎ui/src/pages/Admin/Answers/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ const Answers: FC = () => {
166166
<td>{li.vote_count}</td>
167167
<td>
168168
<Stack>
169-
<BaseUserCard data={li.user_info} nameMaxWidth="200px" />
169+
<BaseUserCard
170+
avatarSize="20"
171+
data={li.user_info}
172+
nameMaxWidth="200px"
173+
/>
170174

171175
<FormatTime
172176
className="small text-secondary"

‎ui/src/pages/Admin/Questions/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ const Questions: FC = () => {
165165
</td>
166166
<td>
167167
<Stack>
168-
<BaseUserCard data={li.user_info} nameMaxWidth="130px" />
168+
<BaseUserCard
169+
avatarSize="20"
170+
data={li.user_info}
171+
nameMaxWidth="130px"
172+
/>
169173
<FormatTime
170174
className="small text-secondary"
171175
time={li.create_time}

0 commit comments

Comments
 (0)
Please sign in to comment.