Make clicky item icons match line height

This commit is contained in:
Abe Jellinek 2024-01-17 12:05:03 -08:00 committed by Dan Stillman
parent 40cc55757b
commit 37d2b41778
3 changed files with 4 additions and 2 deletions

View file

@ -54,7 +54,9 @@ Zotero.UIProperties = new class {
_setFontSize(root) { _setFontSize(root) {
let size = Zotero.Prefs.get('fontSize'); let size = Zotero.Prefs.get('fontSize');
root.style.fontSize = root.style['--zotero-font-size'] = size + 'em'; let sizeCSS = size + 'rem';
root.style.fontSize = sizeCSS;
root.style.setProperty('--zotero-font-size', sizeCSS);
if (size <= 1) { if (size <= 1) {
size = 'small'; size = 'small';
} }

View file

@ -6,6 +6,7 @@
font-family: system-ui, -apple-system, sans-serif; font-family: system-ui, -apple-system, sans-serif;
font-size: 13px; font-size: 13px;
font-style: normal; font-style: normal;
line-height: 1.3333333333;
@media (-moz-platform: windows) { @media (-moz-platform: windows) {
--color-accent: var(--accent-blue); --color-accent: var(--accent-blue);
@include light-dark(--color-focus-border, #000, #fff); @include light-dark(--color-focus-border, #000, #fff);

View file

@ -39,7 +39,6 @@ libraries-collections-box {
.icon { .icon {
width: 16px; width: 16px;
height: 16px;
} }
} }