style: inset lightbox image with a small dim margin
All checks were successful
CI / verify (push) Successful in 1m5s

Cap the fullscreen image at 96vh/96vw so a thin dim margin frames the
white image instead of bleeding to the viewport edges.
This commit is contained in:
Julien Calixte
2026-06-18 00:23:38 +02:00
parent 0f19482cf2
commit 7575e34f8b

View File

@@ -48,7 +48,7 @@ watch(isOpen, (value) => {
v-if="src" v-if="src"
:src="src" :src="src"
:alt="alt" :alt="alt"
class="max-h-[100vh] max-w-[100vw] rounded-lg bg-white p-3 cursor-zoom-out" class="max-h-[96vh] max-w-[96vw] rounded-lg bg-white p-3 cursor-zoom-out"
/> />
</dialog> </dialog>
</template> </template>