From 11a15855bcf08c8e4e7587d6a41d5e4151264f87 Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Thu, 16 Apr 2026 19:59:25 +0200 Subject: [PATCH] fix magnified dimentions --- lib/figures.typ | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/figures.typ b/lib/figures.typ index a70b657..376cc87 100644 --- a/lib/figures.typ +++ b/lib/figures.typ @@ -12,6 +12,7 @@ max-height: 100%; height: auto; width: auto; + object-fit: contain; } fullscreen-overlay { @@ -30,7 +31,10 @@ flex-direction: column; img { - width: 100%; + width: 95dvw; + height: 95dvh; + max-width: 95dvw; + max-height: 95dvh; } }