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; } }