From fcad9fd19fc45e75f14f908e93aae06cd1bc4707 Mon Sep 17 00:00:00 2001 From: Krzysztof Jeziorny <872730+krzysztofjeziorny@users.noreply.github.com> Date: Wed, 19 Apr 2023 18:13:00 +0200 Subject: [PATCH] Vertical widths of containers removed (#24184) A vertical overflow appears in Firefox 112/MacOS 12.6 when the system setting for scrollbars is to "Always" show them. --- Here, the fixed 100vw container widths are removed, which removes the overflow. It is, however, only simulated in Developer Tools in latest Firefox and Chromium, so please test on a Gitea installation. --- web_src/css/base.css | 5 ++--- web_src/css/dashboard.css | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index bdf601951b..79e1566b64 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1814,9 +1814,8 @@ footer { } footer .container { - width: 100vw !important; padding: 0 0.5rem; - max-width: calc(100vw - 1rem) !important; + max-width: 100%; } footer .container .links > * { @@ -2368,7 +2367,7 @@ a.ui.label:hover { } .ui.primary.label, -.ui.primary.labels .label, +.ui.primary.labels .label, .ui.ui.ui.primary.label { background-color: var(--color-primary); border-color: var(--color-primary-dark-2); diff --git a/web_src/css/dashboard.css b/web_src/css/dashboard.css index ced8b3a164..4512367dc7 100644 --- a/web_src/css/dashboard.css +++ b/web_src/css/dashboard.css @@ -84,7 +84,6 @@ } .dashboard .dashboard-navbar { - width: 100vw; padding-left: 0.5rem; padding-right: 0.5rem; }