Use the free header space for tabs
The drag area after the tabs kept 120 pixels. The tabs shrank and scrolled first, so the 120 pixels stayed empty while tabs were out of view. - The drag area fills the free space after the + button. When the tabs need more room, they use all space up to a drag area of 48 pixels. Then they scroll. - UI-062 records the rule change, and the interface design guide holds the new rule. The titleBar smoke test checks the drag area with one tab and with 11 tabs. Card 7f1d29d6.
This commit is contained in:
@@ -115,12 +115,12 @@
|
||||
:global(.shell.left-open) .header-left { width: calc(var(--ribbon-width) + var(--left) + 1px); }
|
||||
.header-left :global(.icon-btn), .header-right :global(.icon-btn) { flex-shrink: 0; }
|
||||
.header-right { justify-content: flex-end; }
|
||||
/* A drag area keeps the window movable when the tabs fill the header: 120 pixels, and at least 48 in a narrow header. */
|
||||
.window-drag-space { flex: 0 1 120px; min-width: 48px; align-self: stretch; }
|
||||
/* The drag area fills the free space after the tabs. It keeps 48 pixels, so the window stays movable when the tabs fill the header. */
|
||||
.window-drag-space { flex: 1 0 48px; align-self: stretch; }
|
||||
|
||||
/* The tab strip keeps room for one readable tab. It shrinks first, so the drag area shrinks only after it. */
|
||||
/* The tab strip uses all space up to the drag area, then scrolls. It keeps room for one readable tab. */
|
||||
.header-center :global(.tabs) {
|
||||
flex: 0 1000 auto;
|
||||
flex: 0 1 auto;
|
||||
align-self: stretch;
|
||||
min-width: 120px;
|
||||
min-height: 28px;
|
||||
|
||||
Reference in New Issue
Block a user