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).
This commit is contained in:
SethBurkart123 committed 2026-10-29 10:24:52 +11:00
1 parent 29bdb0064d
commit 4d8445d7da
1 file changed
+6 -3
+6 -3
View File
@@ -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);
}