Skip to content

Commit

Permalink
Fix layout problems with narrow images
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorstrate committed Sep 7, 2020
1 parent 66beade commit a257dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/photoGallery/MediaThumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const MediaThumbnail = ({
key={media.id}
style={{
cursor: onSelectImage ? 'pointer' : null,
minWidth: `min(${minWidth}px, 100% - 8px)`,
minWidth: `clamp(124px, ${minWidth}px, 100% - 8px)`,
}}
onClick={() => {
onSelectImage && onSelectImage(index)
Expand Down

0 comments on commit a257dfb

Please sign in to comment.