From b77b3dbf2bfbead3fa4e7b0a5a7e1bb7db59a8e5 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 5 Oct 2023 12:42:40 +0200 Subject: [PATCH] Fix developerMode layout (#322) - Fix scroll content overflow - Remove li spacing in the developer menu --- resources/main.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/main.css b/resources/main.css index 9cced86e2..1a341f5d8 100644 --- a/resources/main.css +++ b/resources/main.css @@ -9,6 +9,7 @@ --highlight: rgb(232, 79, 79); --text-width: 650px; --metrics-line-height: 25px; + --scrollbar-width: 10px; } body { @@ -31,8 +32,8 @@ body { ::-webkit-scrollbar-track { background-color: var(--inactive-color); border-radius: 8px; - width: 10px; - height: 10px; + width: var(--scrollbar-width); + height: var(--scrollbar-width); } ::-webkit-scrollbar-thumb { background-color: var(--foreground); @@ -208,7 +209,6 @@ button, .developer-mode { border-radius: 10px; - max-height: 80vh; padding: 1rem; background: #602525; border: 3px solid rgba(255, 255, 255, 0.5); @@ -230,6 +230,8 @@ button, flex: 1; max-height: 80vh; overflow: auto; + margin-right: calc(0px - var(--scrollbar-width)); + padding-right: var(--scrollbar-width); } .developer-mode-content ol { @@ -243,6 +245,10 @@ button, gap: 3px; } +.developer-mode-content li + li { + margin-top: 0px; +} + .developer-mode-content button { background: white; flex: auto;