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} - - {/if} +

+

+ {asset.originalFileName} + {#if isOwner} + + {/if} +

+ {#if showAssetPath} +

+ {asset.originalPath}

+ {/if} + {#if (asset.exifInfo?.exifImageHeight && asset.exifInfo?.exifImageWidth) || asset.exifInfo?.fileSizeInByte}
- {#if asset.exifInfo.exifImageHeight && asset.exifInfo.exifImageWidth} + {#if asset.exifInfo?.exifImageHeight && asset.exifInfo?.exifImageWidth} {#if getMegapixel(asset.exifInfo.exifImageHeight, asset.exifInfo.exifImageWidth)}

{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}
- {#if showAssetPath} -

- {asset.originalPath} -

- {/if} -
+ {/if}
- {/if} +
{#if asset.exifInfo?.make || asset.exifInfo?.model || asset.exifInfo?.fNumber}