Commit db412a1
committed
feat(ccb): only show the file label in design mode
In code mode the active file is already obvious from the tab bar and
working-files list, so the vertical CCB label is redundant chrome that
just steals vertical space. In design mode the editor collapses and
those affordances aren't visible — that's the only place the label
earns its spot.
Tag the divider preceding the file group with .ccb-file-divider so the
divider + group can be hidden as a pair, and wrap both in a
`body:not(.ccb-editor-collapsed)` rule. No JS toggle needed; the body
class is already flipped by CentralControlBar when design mode changes.
Adds a "should only be visible in design mode" integ test that
checks :visible on both the label and the leading divider through
enter/exit design-mode transitions.1 parent 64ac885 commit db412a1
3 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
319 | 335 | | |
320 | 336 | | |
321 | 337 | | |
| |||
0 commit comments