Skip to content

Commit

Permalink
feat: add units to exposure time display (#9803)
Browse files Browse the repository at this point in the history
* feat(web): add units to exposure time display

* feat(mobile): add units to exposure time display
Snowknight26 authored May 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8812c3a commit ee3530b
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ class ExifBottomSheet extends HookConsumerWidget {
exifInfo.mm != null ||
exifInfo.iso != null
? Text(
"ƒ/${exifInfo.fNumber} ${exifInfo.exposureTime} ${exifInfo.focalLength} mm ISO ${exifInfo.iso ?? ''} ",
"ƒ/${exifInfo.fNumber} ${exifInfo.exposureTime} s ${exifInfo.focalLength} mm ISO ${exifInfo.iso ?? ''} ",
style: context.textTheme.bodySmall,
)
: null,
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ class ExifDetail extends StatelessWidget {
exifInfo?.mm != null ||
exifInfo?.iso != null
? Text(
"ƒ/${exifInfo?.fNumber} ${exifInfo?.exposureTime} ${exifInfo?.focalLength} mm ISO ${exifInfo?.iso ?? ''} ",
"ƒ/${exifInfo?.fNumber} ${exifInfo?.exposureTime} s ${exifInfo?.focalLength} mm ISO ${exifInfo?.iso ?? ''} ",
style: context.textTheme.bodySmall,
)
: null,
2 changes: 1 addition & 1 deletion web/src/lib/components/asset-viewer/detail-panel.svelte
Original file line number Diff line number Diff line change
@@ -381,7 +381,7 @@
{/if}

{#if asset.exifInfo.exposureTime}
<p>{`${asset.exifInfo.exposureTime}`}</p>
<p>{`${asset.exifInfo.exposureTime} s`}</p>
{/if}

{#if asset.exifInfo.focalLength}

0 comments on commit ee3530b

Please sign in to comment.