fix: close button on image viewer squashed (#17)

can't replicate so i'm hoping this works
This commit is contained in:
trafficlunar 2026-03-30 10:49:40 +01:00
parent 9f65847c3b
commit 77266d0ef1

View file

@ -97,7 +97,7 @@ export default function ImageViewer({ src, alt, width, height, unoptimized = fal
type="button" type="button"
aria-label="Close" aria-label="Close"
onClick={close} onClick={close}
className={`pill button p-2! aspect-square text-2xl absolute top-4 right-4 ${isVisible ? "opacity-100" : "opacity-0"}`} className={`pill button p-2! size-11 aspect-square text-2xl absolute top-4 right-4 shrink-0 ${isVisible ? "opacity-100" : "opacity-0"}`}
> >
<Icon icon="material-symbols:close-rounded" /> <Icon icon="material-symbols:close-rounded" />
</button> </button>