From bfea02ebd0cf3a107afd70b472ea1b75623f7359 Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Tue, 20 Jan 2026 10:54:39 +0100 Subject: [PATCH] Actually make it affect larger screens too And remove a magic number --- app/assets/stylesheets/dialog.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/dialog.css b/app/assets/stylesheets/dialog.css index 632d9af74..75f03136a 100644 --- a/app/assets/stylesheets/dialog.css +++ b/app/assets/stylesheets/dialog.css @@ -36,10 +36,8 @@ } } - /* Ensure padding from viewport edges on narrow screens */ - @media (max-width: 639px) { - .dialog.panel { - max-inline-size: 94vw; - } + /* Ensure padding from viewport edges */ + .dialog.panel { + max-inline-size: calc(100vw - var(--block-space-double)); } }