From 4d8445d7dac87ee98835f82c0c168c6c576a3746 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 29 Oct 2026 10:18:50 +1100 Subject: [PATCH] fix(css): center .addedButton icons with real flex layout The button had "justify-content: center" without display: flex, so it was inert and the svg sat in inline flow; 24px svg + 6px margins + 6px padding (48px) also could never fit the 35px button, letting the icon spill asymmetrically. Center properly with flex, drop the dead padding and svg margins, and blockify the svg (also fixes the sun icon off-centering). --- src/css/injected.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/css/injected.scss b/src/css/injected.scss index 1d5d52c8..99034ba3 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -241,14 +241,15 @@ html:not(.dark) .legacy-root { .addedButton { position: absolute !important; right: 105px; - padding: 6px !important; + display: flex !important; + align-items: center !important; + justify-content: center !important; overflow: unset !important; border-radius: 10px !important; cursor: pointer; background: var(--text-primary) !important; color: var(--theme-primary) !important; height: 35px; - justify-content: center; width: 35px !important; } @@ -422,7 +423,9 @@ ul.magicDelete > li.deleting { background: unset; } .addedButton svg { - margin: 6px; + display: block; + margin: 0; + flex-shrink: 0; fill: var(--theme-primary); color: var(--theme-primary); }