From 6bfc20ef956e7cde0b2c52920369c6a6fb8fdb68 Mon Sep 17 00:00:00 2001 From: cfitzw <20694057+cfitzw@users.noreply.github.com> Date: Sat, 2 Nov 2024 13:27:40 -0500 Subject: [PATCH] feat: render asset path (#13873) render asset path --- .../asset-viewer/detail-panel.svelte | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index f7bd806afc..ab84896b7b 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -345,43 +345,45 @@ {/if} - {#if asset.exifInfo?.fileSizeInByte} -
- {asset.originalFileName}
- {#if isOwner}
-
+ {asset.originalFileName}
+ {#if isOwner}
+
+ {asset.originalPath}
+ {/if} + {#if (asset.exifInfo?.exifImageHeight && asset.exifInfo?.exifImageWidth) || asset.exifInfo?.fileSizeInByte}{getMegapixel(asset.exifInfo.exifImageHeight, asset.exifInfo.exifImageWidth)} MP
+ {@const { width, height } = getDimensions(asset.exifInfo)} +{width} x {height}
{/if} - {@const { width, height } = getDimensions(asset.exifInfo)} -{width} x {height}
{/if} -{getByteUnitString(asset.exifInfo.fileSizeInByte, $locale)}
+ {#if asset.exifInfo?.fileSizeInByte} +{getByteUnitString(asset.exifInfo.fileSizeInByte, $locale)}
+ {/if}- {asset.originalPath} -
- {/if} -