mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-27 03:47:09 -06:00
* Tables: AutoFit in a nested table fits within its cell (#971) A double-click on a nested table's column border let the table widen up to the page's right margin, far past the cell around it. It now widens only up to the right edge of that cell's text (a right-to-left table's start margin on the right); the columns right of the border still keep their widths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Tables: a selection through a table shades its rows' whole cells (#971) A selection from text into or across a table takes whole rows (#722), but only the letters in the cells were highlighted. Every row it takes from start to end now shades all its cells (an empty one too), as selected cells do, and the letters in them aren't shaded twice (`table_mouse::selection_rects`, used by the canvas). A selection that starts and ends in one table keeps its text highlight, so selecting all the text of a cell doesn't look like selecting the cell; a nested table in a shaded row shades with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Typing: Shift+Right at a cell's end selects the cell first (#971) Shift+Right out of the cell the selection is in selected that cell and the next one at once. As in Word, the first step out of the cell now takes the cell alone (its end-of-cell mark) and the next press goes on into the next cell; in an empty cell the first press selects it. Shift+Left in right-to-left text, the forward step there, does the same. Pinned in `tests_typing.rs` and `docs/typing-parity.md`; progress docs for all three table fixes of #971. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>