修复主页学生卡片高度被动画占位撑高

This commit is contained in:
JSR
2026-03-18 20:57:19 +08:00
parent 15f587fbdf
commit d4cbfc556a
+1 -25
View File
@@ -586,7 +586,7 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
{avatarText}
</div>
)}
<div style={{ flex: 1, overflow: "hidden", position: "relative", minHeight: "40px" }}>
<div style={{ flex: 1, overflow: "hidden", position: "relative", minHeight: "44px" }}>
<div
style={{
position: "absolute",
@@ -666,30 +666,6 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
</Tag>
</div>
</div>
<div style={{ visibility: "hidden" }}>
<div
style={{
fontWeight: 600,
fontSize: "15px",
color: "var(--ss-text-main)",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}
>
{student.name}
</div>
<div
style={{ display: "flex", alignItems: "center", gap: "4px", marginTop: "2px" }}
>
<Tag
color={student.score > 0 ? "success" : student.score < 0 ? "error" : "default"}
style={{ fontWeight: "bold" }}
>
{student.score > 0 ? `+${student.score}` : student.score}
</Tag>
</div>
</div>
</div>
</div>
</Card>