From 485b152bebfd49166b48b31097c4f4c3cdf335db Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Sat, 25 Jun 2022 13:28:36 -0500 Subject: [PATCH] Improved info panel on web --- .../asset-viewer/detail-panel.svelte | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) 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}