@@ -280,10 +280,12 @@ export const MessageAttachment = ({ attachment, isInner }: Props) => {
280
280
< div
281
281
data-no-context-menu
282
282
className = { classNames (
283
- 'bg-layer-3 rounded px-1 py-2' ,
283
+ 'rounded bg-layer-3 px-1 py-2' ,
284
284
isExpanded && 'col-span-1 col-start-1 sm:col-span-2 md:col-span-3' ,
285
- ! isInner && 'border-secondary border' ,
286
- attachment . openFullScreen && isOpened && 'fixed inset-x-0 top-0 z-40 flex h-full flex-col' ,
285
+ ! isInner && 'border border-secondary' ,
286
+ attachment . openFullScreen &&
287
+ isOpened &&
288
+ 'fixed inset-x-0 top-0 z-40 flex h-full flex-col' ,
287
289
) }
288
290
>
289
291
< div className = "flex items-center gap-3 px-2" >
@@ -304,7 +306,7 @@ export const MessageAttachment = ({ attachment, isInner }: Props) => {
304
306
</ a >
305
307
</ Tooltip >
306
308
) : (
307
- < Icon size = { 18 } className = "text-secondary shrink-0" />
309
+ < Icon size = { 18 } className = "shrink-0 text-secondary " />
308
310
) }
309
311
</ div >
310
312
< button
@@ -349,7 +351,7 @@ export const MessageAttachment = ({ attachment, isInner }: Props) => {
349
351
height = { 18 }
350
352
width = { 18 }
351
353
className = { classNames (
352
- 'text-secondary shrink-0 transition' ,
354
+ 'shrink-0 text-secondary transition' ,
353
355
isOpened && 'rotate-180' ,
354
356
) }
355
357
/>
@@ -373,8 +375,10 @@ export const MessageAttachment = ({ attachment, isInner }: Props) => {
373
375
{ isOpenable && isOpened && (
374
376
< div
375
377
className = { classNames (
376
- 'border-tertiary relative mt-2 w-full border-t p-3 pt-4 text-sm duration-200' ,
377
- attachment . openFullScreen ? 'grow overflow-auto' : 'h-auto overflow-hidden'
378
+ 'relative mt-2 w-full border-t border-tertiary p-3 pt-4 text-sm duration-200' ,
379
+ attachment . openFullScreen
380
+ ? 'grow overflow-auto'
381
+ : 'h-auto overflow-hidden' ,
378
382
) }
379
383
ref = { anchorRef }
380
384
>
@@ -392,7 +396,7 @@ export const MessageAttachment = ({ attachment, isInner }: Props) => {
392
396
href = { mappedAttachmentReferenceUrl }
393
397
target = "_blank"
394
398
rel = "noopener noreferrer"
395
- className = "text-accent-primary mt-3 block"
399
+ className = "mt-3 block text-accent-primary "
396
400
>
397
401
{ t ( 'Reference...' ) }
398
402
</ a >
0 commit comments