Skip to content

Commit

Permalink
fix: show size if it's availabe (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
revam authored Aug 11, 2024
1 parent edc25a1 commit 02db950
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/collection/series/SeriesImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ const SeriesImages = () => {
<InfoLine title="Filename" value={filename} />
<InfoLine title="Location" value={filepath} />
<InfoLine title="Source" value={selectedImage?.Source ?? '-'} />
<InfoLine title="Size" value="-" />
<InfoLine
title="Size"
value={selectedImage?.Width && selectedImage?.Height
? `${selectedImage.Width} x ${selectedImage.Height}`
: '-'}
/>
<Button
buttonType="primary"
buttonSize="normal"
Expand Down

0 comments on commit 02db950

Please sign in to comment.