Skip to content

Commit ac77a25

Browse files
feat: improve quick task card layout with side-by-side icon and title
1 parent d36d30e commit ac77a25

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/frontend/src/coral/components/PromptCard.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,22 @@ const PromptCard: React.FC<PromptCardProps> = ({
5151
}}
5252
>
5353
<div style={{ display: "flex", flexDirection: "column", gap: "12px" }}>
54-
{icon && (
55-
<div
56-
style={{
57-
fontSize: "20px",
58-
color: "var(--colorBrandForeground1)",
59-
marginTop: "2px",
60-
}}
61-
>
62-
{icon}
63-
</div>
64-
)}
6554
<div style={{ display: "flex", flexDirection: "column", gap: "4px" }}>
66-
<Body1Strong>{title}</Body1Strong>
55+
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
56+
{icon && (
57+
<div
58+
style={{
59+
fontSize: "20px",
60+
color: "var(--colorBrandForeground1)",
61+
display: "flex",
62+
alignItems: "center",
63+
}}
64+
>
65+
{icon}
66+
</div>
67+
)}
68+
<Body1Strong>{title}</Body1Strong>
69+
</div>
6770
<Body1 style={{ color: "var(--colorNeutralForeground3)" }}>
6871
{description}
6972
</Body1>

0 commit comments

Comments
 (0)