|
76 | 76 | -webkit-backdrop-filter: blur(10px); |
77 | 77 | } |
78 | 78 |
|
79 | | -/* The workspace rail adapts to the pane width (side column on wide panes, |
80 | | - bottom strip on narrow ones — chat-pane measures and flips the dock), so |
81 | | - its toggles stay available at every width. The background-tasks rail is |
82 | | - side-dock only, so its toggles still hide on narrow viewports until it |
83 | | - grows a narrow presentation. */ |
84 | | -@media (max-width: 1120px) { |
85 | | - .chat-tasks-open, |
86 | | - .chat-pane__actions .chat-tasks-toggle { |
87 | | - display: none; |
88 | | - } |
89 | | -} |
| 79 | +/* Both rails adapt to the pane width (side column on wide panes, bottom strip |
| 80 | + on narrow ones — chat-pane measures and flips the presentation), so their |
| 81 | + toggles stay available at every width. */ |
90 | 82 |
|
91 | 83 | /* Positioning context for the badge; the floating variant already gets one |
92 | 84 | from its own position: absolute, so scope this to the pane-header variant. */ |
|
1687 | 1679 | min-height: 160px; |
1688 | 1680 | } |
1689 | 1681 |
|
1690 | | -/* The background-tasks rail has no narrow presentation yet; hide it with its |
1691 | | - toggles on narrow viewports (the workspace rail adapts instead). The hidden |
1692 | | - rail must also release its reserved grid track, so the tasks-open templates |
1693 | | - collapse back to the workspace-only shapes here. */ |
1694 | | -@media (max-width: 1120px) { |
1695 | | - .chat-tasks-rail { |
1696 | | - display: none; |
1697 | | - } |
| 1682 | +/* Narrow pane: the tasks rail mirrors the workspace rail's bottom strip. |
| 1683 | + chat-view only sets --tasks-open for the side column, so the column |
| 1684 | + templates never fire here; these rules add the strip row instead. */ |
| 1685 | +.chat-workbench--tasks-dock-bottom { |
| 1686 | + grid-template-rows: minmax(0, 1fr) minmax(160px, 236px); |
| 1687 | +} |
1698 | 1688 |
|
1699 | | - .chat-workbench--tasks-open.chat-workbench--workspace-collapsed, |
1700 | | - .chat-workbench--tasks-open.chat-workbench--dock-bottom { |
1701 | | - grid-template-columns: minmax(0, 1fr); |
1702 | | - } |
| 1689 | +/* Both strips open: workspace row 2, tasks row 3. */ |
| 1690 | +.chat-workbench--tasks-dock-bottom.chat-workbench--dock-bottom { |
| 1691 | + grid-template-rows: minmax(0, 1fr) minmax(160px, 236px) minmax(160px, 236px); |
| 1692 | +} |
1703 | 1693 |
|
1704 | | - /* Mirrors the three-column selector's specificity so the two-column shape |
1705 | | - wins while the tasks rail is hidden. */ |
1706 | | - .chat-workbench--tasks-open:not(.chat-workbench--workspace-collapsed):not( |
1707 | | - .chat-workbench--dock-bottom |
1708 | | - ) { |
1709 | | - grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); |
1710 | | - } |
| 1694 | +/* A collapsed workspace rail renders nothing, so its strip row must not stay |
| 1695 | + reserved under the tasks strip. */ |
| 1696 | +.chat-workbench--tasks-dock-bottom.chat-workbench--dock-bottom.chat-workbench--workspace-collapsed { |
| 1697 | + grid-template-rows: minmax(0, 1fr) minmax(160px, 236px); |
| 1698 | +} |
| 1699 | + |
| 1700 | +/* -2 is the second-from-last grid line, so the strip always lands in the last |
| 1701 | + row whether or not the workspace strip sits above it. */ |
| 1702 | +.chat-workbench--tasks-dock-bottom .chat-tasks-rail { |
| 1703 | + grid-column: 1 / -1; |
| 1704 | + grid-row: -2; |
| 1705 | + border-left: none; |
| 1706 | + border-top: 1px solid var(--border); |
| 1707 | +} |
| 1708 | + |
| 1709 | +/* Bottom strip is short and wide: sections sit side by side as their own |
| 1710 | + scroll columns, matching the workspace rail's bottom dock. */ |
| 1711 | +.chat-workbench--tasks-dock-bottom .chat-tasks-rail__scroll { |
| 1712 | + flex-direction: row; |
| 1713 | + overflow-x: auto; |
| 1714 | + overflow-y: hidden; |
| 1715 | +} |
| 1716 | + |
| 1717 | +.chat-workbench--tasks-dock-bottom .chat-tasks-rail__scroll > .chat-tasks-rail__section { |
| 1718 | + flex: 1 0 260px; |
| 1719 | + min-width: 0; |
| 1720 | + overflow-y: auto; |
| 1721 | +} |
| 1722 | + |
| 1723 | +.chat-workbench--tasks-dock-bottom |
| 1724 | + .chat-tasks-rail__scroll |
| 1725 | + > .chat-tasks-rail__section |
| 1726 | + + .chat-tasks-rail__section { |
| 1727 | + border-left: 1px solid color-mix(in srgb, var(--border) 42%, transparent); |
1711 | 1728 | } |
1712 | 1729 |
|
1713 | 1730 | /* Mobile: Full-screen modal */ |
|
0 commit comments