Skip to content

Commit 5c4e1f2

Browse files
committed
Make header action hover area responsive
1 parent 3321e42 commit 5c4e1f2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

anycode/components/layout/Layout.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
min-height: 30px;
8080
align-items: stretch;
8181
position: relative;
82+
container-type: inline-size;
8283
}
8384

8485
/* Dockview custom scrollbars in tab header are unstable under frequent relayout.
@@ -241,6 +242,14 @@
241242
width: max-content;
242243
}
243244

245+
/* In a sufficiently wide group, reserve the full hit area for all header
246+
actions. Narrow groups keep the compact 35px trigger so tabs stay usable. */
247+
@container (min-width: 360px) {
248+
.layout-header-actions {
249+
width: max-content;
250+
}
251+
}
252+
244253
.layout .dv-tabs-and-actions-container .dv-right-actions-container:has(.layout-header-actions:hover),
245254
.layout .dv-tabs-and-actions-container .dv-right-actions-container:has(.layout-header-actions:focus-within) {
246255
background-color: var(--background-color, #242424) !important;

0 commit comments

Comments
 (0)