diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index 95ce78ac98..728b298e99 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -95,7 +95,11 @@
-

DETAILS

+ {#if !asset.exifInfo} +

NO EXIF INFO AVAILABLE

+ {:else} +

DETAILS

+ {/if} {#if asset.exifInfo?.dateTimeOriginal}
@@ -104,7 +108,7 @@
-

{moment(asset.exifInfo.dateTimeOriginal).format('MMM DD')}

+

{moment(asset.exifInfo.dateTimeOriginal).format('MMM DD, YYYY')}

{moment( @@ -141,9 +145,20 @@

{asset.exifInfo.make || ''} {asset.exifInfo.model || ''}

{`f/${asset.exifInfo.fNumber}` || ''}

-

{`1/${Math.floor(1 / asset.exifInfo.exposureTime)}` || ''}

-

{`${asset.exifInfo.focalLength}mm` || ''}

-

{`ISO${asset.exifInfo.iso}` || ''}

+ + {#if asset.exifInfo.exposureTime} +

{`1/${Math.floor(1 / asset.exifInfo.exposureTime)}`}

+ {/if} + + {#if asset.exifInfo.focalLength} +

{`${asset.exifInfo.focalLength} mm`}

+ {/if} + + {#if asset.exifInfo.iso} +

+ {`ISO${asset.exifInfo.iso}`} +

+ {/if}