From 24524a20fe428d9adea1e95690b39745d0df4ab4 Mon Sep 17 00:00:00 2001 From: ReimarPB Date: Sat, 9 Sep 2023 18:06:32 +0200 Subject: [PATCH] Fix visual bug in chrome while changing themes --- assets/icons/light-mode/theme-auto.svg | 2 +- assets/style/dark-mode.css | 1 + assets/style/light-mode.css | 1 + assets/style/main.css | 8 ++++++++ inc/sidebar.inc | 18 ++++++++++-------- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/assets/icons/light-mode/theme-auto.svg b/assets/icons/light-mode/theme-auto.svg index aa0708e..be99f6f 100644 --- a/assets/icons/light-mode/theme-auto.svg +++ b/assets/icons/light-mode/theme-auto.svg @@ -4,5 +4,5 @@ - + diff --git a/assets/style/dark-mode.css b/assets/style/dark-mode.css index 14eefb6..5b00465 100644 --- a/assets/style/dark-mode.css +++ b/assets/style/dark-mode.css @@ -76,3 +76,4 @@ body { .light { display: none !important; } + diff --git a/assets/style/light-mode.css b/assets/style/light-mode.css index 6f9a47b..ea772db 100644 --- a/assets/style/light-mode.css +++ b/assets/style/light-mode.css @@ -76,3 +76,4 @@ body { .dark { display: none !important; } + diff --git a/assets/style/main.css b/assets/style/main.css index b3cfe8f..56f757f 100644 --- a/assets/style/main.css +++ b/assets/style/main.css @@ -214,6 +214,14 @@ h1, h2 { float: right; } +.light, .dark { + display: none; +} + +.icon-wrapper { + display: inline-block; + width: 1em; +} .icon { -ms-interpolation-mode: nearest-neighbor; display: inline-block; diff --git a/inc/sidebar.inc b/inc/sidebar.inc index ff23b51..57f0558 100644 --- a/inc/sidebar.inc +++ b/inc/sidebar.inc @@ -4,14 +4,16 @@

Theme

- - - - - - - - +
+ + + + + + + + +