feat(标签布局): 统一新建标签高亮比例
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-22 19:25:47 +08:00
1 parent b680f0bc27
commit 9cb3a898c4
2 files changed
+15 -2

No files matched your search

+13
View File
@@ -48,6 +48,7 @@
display: flex;
min-width: 0;
min-height: 0;
padding-right: 1px;
overflow-x: auto;
scrollbar-width: none;
align-items: stretch;
@@ -111,6 +112,18 @@
background: var(--accent-soft);
}
.document-new-tab {
flex-basis: var(--titlebar-height, 36px);
width: var(--titlebar-height, 36px);
min-width: var(--titlebar-height, 36px);
align-self: stretch;
height: auto;
}
.document-new-tab:focus-visible {
outline-offset: -2px;
}
.document-title-drag {
flex: 1;
min-width: 32px;
+2 -2
View File
@@ -6447,8 +6447,8 @@ function revealPanelTab(container) {
const selected = container.querySelector('[data-selected="true"]');
if (!selected || !container.clientWidth) return;
const box = selected.getBoundingClientRect(), viewport = container.getBoundingClientRect();
if (box.left < viewport.left) container.scrollLeft -= viewport.left - box.left;
else if (box.right > viewport.right) container.scrollLeft += box.right - viewport.right;
if (box.left < viewport.left) container.scrollLeft -= Math.ceil(viewport.left - box.left);
else if (box.right > viewport.right) container.scrollLeft += Math.ceil(box.right - viewport.right);
}
function renderPanelTabs(container, choices, value, change) {