refactor: unify floating toolbar sizing and show graph title

This commit is contained in:
2026-11-06 00:59:51 +08:00
parent d4b45c5051
commit 4ad8655a88
11 changed files with 106 additions and 33 deletions
+4 -3
View File
@@ -3,8 +3,9 @@
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 28px;
height: 24px;
box-sizing: border-box;
width: var(--toolbar-control-width, 28px);
height: var(--toolbar-control-height, 24px);
padding: 4px 6px;
border: 0;
border-radius: 5px;
@@ -12,7 +13,7 @@
color: inherit;
cursor: pointer;
}
.button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.button svg { width: var(--toolbar-icon-size, 16px); height: var(--toolbar-icon-size, 16px); flex: 0 0 var(--toolbar-icon-size, 16px); }
.button:hover { background: #e9e7e3; }
.button:focus-visible { outline: 2px solid #9d7d66; outline-offset: 2px; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }