File tree Expand file tree Collapse file tree 1 file changed +10
-22
lines changed
Expand file tree Collapse file tree 1 file changed +10
-22
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments