mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 09:39:03 +08:00
修复主页学生卡片高度被动画占位撑高
This commit is contained in:
+1
-25
@@ -586,7 +586,7 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
|
|||||||
{avatarText}
|
{avatarText}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div style={{ flex: 1, overflow: "hidden", position: "relative", minHeight: "40px" }}>
|
<div style={{ flex: 1, overflow: "hidden", position: "relative", minHeight: "44px" }}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
@@ -666,30 +666,6 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
|
|||||||
</Tag>
|
</Tag>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user