From 446194787814fecd8ad5ba90f1778242a3b9acb8 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 23 Oct 2023 13:10:14 -0500 Subject: [PATCH] Fix photo tag line breaks --- src/camera/PhotoCamera.tsx | 7 +++++-- src/components/HeaderList.tsx | 6 ++++-- src/photo/PhotoGridSidebar.tsx | 7 +++++-- src/site/globals.css | 4 ++++ src/tag/PhotoTag.tsx | 2 +- src/tag/PhotoTags.tsx | 7 +++---- 6 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/camera/PhotoCamera.tsx b/src/camera/PhotoCamera.tsx index 7af41ffb..aebb79e5 100644 --- a/src/camera/PhotoCamera.tsx +++ b/src/camera/PhotoCamera.tsx @@ -27,7 +27,10 @@ export default function PhotoCamera({ )} > {showIcon && <> - +   } {!(hideApple && camera.make?.toLowerCase() === 'apple') && @@ -35,7 +38,7 @@ export default function PhotoCamera({ {camera.make?.toLowerCase() === 'apple' ? : camera.make} diff --git a/src/components/HeaderList.tsx b/src/components/HeaderList.tsx index 5566e15b..f75bdff7 100644 --- a/src/components/HeaderList.tsx +++ b/src/components/HeaderList.tsx @@ -24,8 +24,10 @@ export default function HeaderList({ 'flex items-center mb-0.5', 'uppercase', )}> - {icon} - {icon && title && <> } + {icon && + + {icon} + } {title} , ] diff --git a/src/photo/PhotoGridSidebar.tsx b/src/photo/PhotoGridSidebar.tsx index e9bd7a26..28156bc7 100644 --- a/src/photo/PhotoGridSidebar.tsx +++ b/src/photo/PhotoGridSidebar.tsx @@ -20,7 +20,7 @@ export default function PhotoGridSidebar({ <> {tags.length > 0 && } + icon={} items={tags.map(({ tag, count }) => } {cameras.length > 0 && } + icon={} items={cameras.map(({ cameraKey, camera, count }) => } diff --git a/src/tag/PhotoTags.tsx b/src/tag/PhotoTags.tsx index 02864fcc..81bc3aec 100644 --- a/src/tag/PhotoTags.tsx +++ b/src/tag/PhotoTags.tsx @@ -8,10 +8,9 @@ export default function PhotoTags({ return (
{tags.map(tag => - )} +
+ +
)}
); }