diff --git a/chrome.html b/chrome.html index 59762ab3..c71be915 100644 --- a/chrome.html +++ b/chrome.html @@ -55,10 +55,18 @@ matter how many tabs are open; the row scrolls (wheel) once tabs hit their minimum width, like Chrome. */ .tabs > .newtab { flex: none; margin-left: 2px; } + /* Firefox-style overflow: once tabs hit their minimum width the row + scrolls, the earliest tabs slide out on the left, and an arrow at each + end moves the row (they only appear when there is something to scroll). */ + .tabscroll { flex: none; width: 24px; height: 28px; margin: 0 2px; padding: 0; border: 1px solid var(--line2); border-bottom: none; + border-radius: 8px 8px 0 0; background: var(--surface); color: var(--mut); cursor: pointer; font: 16px/1 system-ui, sans-serif; + -webkit-app-region: no-drag; } + .tabscroll:hover { color: var(--ink); background: var(--hover); } + .tabscroll:disabled { opacity: .3; cursor: default; } /* Same-size tabs: each tab claims an equal share of the row, capped at 200px so 2 tabs don't stretch across the whole window. With many tabs they shrink down to icon + close (34px) before anything is clipped. */ - .tab { display: flex; align-items: center; gap: 8px; flex: 1 1 0; max-width: 200px; min-width: 34px; padding: 6px 10px; + .tab { display: flex; align-items: center; gap: 8px; flex: 1 1 0; max-width: 200px; min-width: 76px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line2); border-bottom: none; border-radius: 8px 8px 0 0; font-size: 12.5px; cursor: default; color: var(--mut); user-select: none; } .tab.dragging { opacity: .45; cursor: grabbing; } @@ -421,7 +429,7 @@ .bcnrbar .bdismiss { color: var(--dim); text-decoration: none; } .bcnrbar .bdismiss:hover { color: var(--ink); }
-