Skip to content

Commit

Permalink
Introduce media jpg file extension support, Patch LogEntry alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 8, 2024
1 parent 484fdd7 commit cd60632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web/src/components/logs/ItemLogEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ export const ItemLogEntry = ({
return (
<li className="block pt-2 first:pt-0">
<div className="flex flex-row-reverse justify-between">
{view === 'global' && (
<ItemPreview item_id={log.resource_id} variant="compact" />
)}
<div>
{view === 'global' && (
<ItemPreview
item_id={log.resource_id}
variant="compact"
/>
)}
</div>
<div className="flex items-center gap-2">
{match({ action: log.action })
.with({ action: 'create' }, () => (
Expand Down
1 change: 1 addition & 0 deletions web/src/components/media/MediaPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const MediaPreview: FC<{
'svg',
'image/svg+xml',
'jpeg',
'jpg',
'image/jpeg',
'image/gif',
() => <ImagePreview media_id={media_id} url={mediaUrl} />
Expand Down

0 comments on commit cd60632

Please sign in to comment.