mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 08:59:40 +02:00
style(tiles): no CSS hides dividers and slots that a zoom never leaves
`.tile-grid--zoomed .tile-divider` and `.tile-grid--zoomed .tile-slot` hid elements that do not exist while a tile is zoomed: _applyTileLayout toggles the zoomed class in the same pass that syncs zero dividers and zero slots, and it is the only place either is created. Both rules are gone. The dividers test asserted the CSS rule; it now asserts what the user sees (no divider elements while zoomed, two again on restore), and tile-grid-entry-points gains the same check for the empty slot of three tiles in a 2x2. Both fail if the zoom stops removing them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -120,6 +120,15 @@ describe('dragging a tab onto an empty slot', () => {
|
||||
app.openTileGrid(['s-a', 's-b']);
|
||||
expect(slots()).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('a zoomed grid has no slot; restoring the grid brings it back', () => {
|
||||
const app = makeGridApp(IDS);
|
||||
app.openTileGrid(IDS);
|
||||
app.zoomTile('s-a');
|
||||
expect(slots()).toHaveLength(0);
|
||||
app.zoomTile('s-a');
|
||||
expect(slots()).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Ctrl/Cmd+click on a tab', () => {
|
||||
|
||||
Reference in New Issue
Block a user