Skip to content

Commit 5aa21b8

Browse files
authored
💄 微调卡片视图布局 (#872)
Co-authored-by: Coxxs <Coxxs@users.noreply.github.com>
1 parent 426e878 commit 5aa21b8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/pages/options/routes/ScriptList/ScriptCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ export const ScriptCardItem = React.memo(
119119
hoverable
120120
className="script-card"
121121
style={{
122-
marginBottom: "16px",
123-
position: "relative",
124122
...style,
125123
}}
126124
ref={setNodeRef}
@@ -129,7 +127,7 @@ export const ScriptCardItem = React.memo(
129127
boxSizing: "border-box",
130128
}}
131129
>
132-
<div className="flex flex-col justify-between h-full gap-3">
130+
<div className="flex flex-col justify-between h-full gap-1">
133131
<div className="flex flex-col gap-3">
134132
<div className="flex flex-row justify-between items-start gap-1">
135133
<div className="flex-1 min-w-0">
@@ -256,7 +254,7 @@ export const ScriptCardItem = React.memo(
256254
</div>
257255
{/* 操作按钮 */}
258256
<div className="flex flex-col">
259-
<Divider style={{ margin: "8px 0" }} />
257+
<Divider style={{ margin: "4px 0 14px" }} />
260258
<div className="flex flex-row justify-between">
261259
<div>
262260
{item.type !== SCRIPT_TYPE_NORMAL && (

0 commit comments

Comments
 (0)