feat(ui): "+" between cells to insert a cell before/after #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kahliburke/KaimonSlate.jl!3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/insert-cell-between-buttons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds an inter-cell insert affordance: a thin hover zone in the gap between cells (and above the first / below the last) that reveals a round + to insert a cell right there — so you no longer have to add a cell below an existing one and then move it into place.
How
notebook.js: aCellGapcomponent interleaved in<Notebook>— one gap before the first cell and one after each cell (N+1 gaps for N cells). It reuses the existingaddCell(after, kind, before, edit)path (/api/cell-add): a gap after a cell inserts withbefore=false; the top gap inserts before the first cell. Gaps are hidden in dep-focus (the read-oriented view).notebook.css:.cellgapuses negative vertical margins so it adds no height at rest and is invisible until hovered, then shows a faint accent rule + the + centred in the gap.No server change — the insert API already supported before/after positioning; this is a pure front-end affordance.
Verification
Rendered live in a notebook: 40 cells → 41 gaps (correct interleaving), each with its insert button; the gap reveals on hover and inserts at the right position.
Developed with AI assistance.
Thanks @kahliburke for merging