Skip to content

Commit

Permalink
fix: bad line break in p-tag. Missing image formats
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Jan 9, 2024
1 parent 29396a2 commit 3221c14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dm-core/src/components/MediaContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const MediaContent = (props: MediaContentProps): ReactElement => {
<h2 className='text-lg text-equinor-green font-medium'>
No preview available
</h2>
<p className='flex gap-1 mb-3 items-center'>
<p className='flex gap-1 mb-3 items-center block'>
A preview for{' '}
<code className='text-sm'>
{meta.filetype.length > 0 ? meta.filetype : 'binary'}
Expand Down
6 changes: 6 additions & 0 deletions packages/dm-core/src/utils/filetypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export const imageFiletypes = [
'gif',
'jpeg',
'jpg',
'jfif',
'pjpeg',
'pjp',
'tif',
'tiff',
'png',
'apng',
'avif',
Expand Down

0 comments on commit 3221c14

Please sign in to comment.