20260806224941

This commit is contained in:
oneao committed 2026-08-06 22:49:41 +08:00
1 parent 6baa339efa
commit 6938deef39
12 files changed
+367 -300

No files matched your search

@@ -96,11 +96,10 @@ function updateScrollState() {
const track = trackRef.value;
if (!header || !track) return;
const shouldOverflow = track.scrollWidth > header.clientWidth - 16 + 1;
const shouldOverflow = track.scrollWidth > header.clientWidth + 1;
if (overflowed.value !== shouldOverflow) {
overflowed.value = shouldOverflow;
if (!shouldOverflow) track.scrollLeft = 0;
nextTick(updateScrollState);
return;
}
@@ -219,7 +218,7 @@ function handleTabKeydown(event, index) {
height: 34px;
align-items: center;
gap: 4px;
padding: 3px 8px;
padding: 3px 0;
background: #ffffff;
}
@@ -231,7 +230,7 @@ function handleTabKeydown(event, index) {
height: 28px;
padding: 0;
place-items: center;
border: 0;
border: 1px solid #e4e4e7;
border-radius: 6px;
color: #71717a;
background: transparent;