From 47478e584f34131a3b22a1beebb03d2ca7dbf83d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 6 Jun 2019 09:53:50 +1000 Subject: [PATCH] use screen-relative max height/width this should matche the Anki 2.0 behaviour --- web/editor.css | 2 +- web/reviewer.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/editor.css b/web/editor.css index b1f7bea27..6a51a19d6 100644 --- a/web/editor.css +++ b/web/editor.css @@ -21,7 +21,7 @@ } img { - max-width: 90%; + max-width: 90vw; } body { diff --git a/web/reviewer.css b/web/reviewer.css index 6e355c978..704d46851 100644 --- a/web/reviewer.css +++ b/web/reviewer.css @@ -16,8 +16,8 @@ body.nightMode { } img { - max-width: 95%; - max-height: 95%; + max-width: 95vw; + max-height: 95vh; } #_flag {