Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bwin borrows real window-construction terms — match their meaning in code, com

- Comment only when it adds something the code doesn't already say.
- Keep comments to 2 lines max, 100 chars per line. If one genuinely needs more, prefix it with `RATIONAL:`.
- Wrap code keywords in backticks — API/method names, variable names, identifiers (e.g. `addPane`, `activeDragGlassEl`).

## Debug sentinel values

Expand Down
4 changes: 3 additions & 1 deletion src/binary-window/glass/drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export default {
this.removePane(oldSashId);

const newPaneSash = this.addPane(sash.id, { position: dropArea, id: oldSashId });
newPaneSash.domNode.append(activeDragGlassEl);
// `addPane` seeds the pane with an empty placeholder glass; replace it with
// the dragged glass so the pane holds exactly one (the real) glass.
newPaneSash.domNode.replaceChildren(activeDragGlassEl);
}
},

Expand Down