Skip to content

Commit 3482040

Browse files
committed
refactor: remove "x images attached" text from user message attachments
1 parent 9facb59 commit 3482040

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

cli/src/components/message-block.tsx

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,38 +76,26 @@ const MessageAttachments = ({
7676
}: {
7777
attachments: ImageAttachment[]
7878
}) => {
79-
const theme = useTheme()
80-
8179
if (attachments.length === 0) {
8280
return null
8381
}
8482

8583
return (
8684
<box
8785
style={{
88-
flexDirection: 'column',
89-
gap: 0,
86+
flexDirection: 'row',
87+
gap: 1,
88+
flexWrap: 'wrap',
9089
marginTop: 1,
9190
}}
9291
>
93-
<text style={{ fg: theme.muted }}>
94-
📎 {attachments.length} image{attachments.length > 1 ? 's' : ''} attached
95-
</text>
96-
<box
97-
style={{
98-
flexDirection: 'row',
99-
gap: 1,
100-
flexWrap: 'wrap',
101-
}}
102-
>
103-
{attachments.map((attachment, index) => (
104-
<ImageCard
105-
key={`${attachment.path}-${index}`}
106-
image={attachment}
107-
showRemoveButton={false}
108-
/>
109-
))}
110-
</box>
92+
{attachments.map((attachment, index) => (
93+
<ImageCard
94+
key={`${attachment.path}-${index}`}
95+
image={attachment}
96+
showRemoveButton={false}
97+
/>
98+
))}
11199
</box>
112100
)
113101
}

0 commit comments

Comments
 (0)