diff --git a/src/app/(normal)/artworks/animalstudies/page.tsx b/src/app/(normal)/artworks/animalstudies/page.tsx index 524a56c..4b53f76 100644 --- a/src/app/(normal)/artworks/animalstudies/page.tsx +++ b/src/app/(normal)/artworks/animalstudies/page.tsx @@ -77,7 +77,7 @@ export default async function AnimalStudiesPage({ searchParams }: { searchParams // console.log(JSON.stringify(artworks, null, 4)) return ( -
+

diff --git a/src/components/artworks/ArtworkThumbGallery.tsx b/src/components/artworks/ArtworkThumbGallery.tsx index 23ca399..01bbcf5 100644 --- a/src/components/artworks/ArtworkThumbGallery.tsx +++ b/src/components/artworks/ArtworkThumbGallery.tsx @@ -20,13 +20,10 @@ type FitMode = | { mode: "fixedHeight"; height: number }; // width varies function getOverlayTextClass(okLabL: number | null | undefined) { - // if okLabL is 0..100, change threshold to ~65 - // if (typeof okLabL === "number") return okLabL >= 0.65 ? "text-black" : "text-white"; return "text-white"; } function getOverlayBgClass(okLabL: number | null | undefined) { - // if (typeof okLabL === "number") return okLabL >= 0.65 ? "bg-white/60" : "bg-black/45"; return "bg-black/45"; } @@ -58,7 +55,12 @@ export default function ArtworkThumbGallery({ } return ( -
+
{items.map((a) => { const textClass = getOverlayTextClass(a.okLabL); const bgClass = getOverlayBgClass(a.okLabL); @@ -68,13 +70,13 @@ export default function ArtworkThumbGallery({ const tileStyle: React.CSSProperties = fit.mode === "fixedWidth" - ? { width: fit.width, aspectRatio: `${w} / ${h}` } + ? { aspectRatio: `${w} / ${h}` } : { height: fit.height, aspectRatio: `${w} / ${h}` }; const sheet = openSheet[a.id] ?? null; return ( -
+
@@ -105,95 +107,7 @@ export default function ArtworkThumbGallery({ className="absolute left-0 right-0 bottom-0 z-20 flex items-center justify-between px-2" style={{ height: BUTTON_BAR_HEIGHT }} > - {/* Tags button */} - {/* */} - - {/* Alt button */} - {/* */}
- - {/* Bottom sheet — stops ABOVE button bar */} - {/*
-
- {sheet === "alt" ? ( -
-
- {a.altText?.trim() ? a.altText : "No alt text set."} -
-
- ) : null} - - {sheet === "tags" ? ( -
-
- {a.tags.length > 0 ? ( - a.tags.map((t) => ( - - {t.name} - - )) - ) : ( - No tags set. - )} -
-
- ) : null} -
-
*/} - - {/* Optional click-away close */} - {/* {sheet ? ( -
);