File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 53
53
}
54
54
}
55
55
56
- // Hide the burger menu if there is no navigation
57
- & :has (.db-header-navigation :empty ) {
56
+ // Hide the burger ONLY when the drawer would be empty.
57
+ // This requires: no main navigation AND no meta navigation AND no secondary action.
58
+ & :has (.db-header-navigation :empty ):has (
59
+ .db-header-meta-navigation :empty
60
+ ):has (.db-header-secondary-action :empty ) {
58
61
.db-header-burger-menu-container {
59
62
display : none ;
60
63
}
64
+ }
61
65
62
- & :has (.db-header-secondary-action :empty ) {
63
- .db-header-action-container ::before {
64
- display : none ;
65
- }
66
+ // Hide the action-area divider only when both navigation and secondary action are missing.
67
+ // With no navigation but a secondary action, we keep the divider.
68
+ & :has (.db-header-navigation :empty ):has (.db-header-secondary-action :empty ) {
69
+ .db-header-action-container ::before {
70
+ display : none ;
66
71
}
67
72
}
68
73
}
You can’t perform that action at this time.
0 commit comments