mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-01 18:24:54 -06:00
* #7874: Home › Borders with whole table cells selected borders the cells Home › Paragraph › Borders always set paragraph borders, so with the table (or rows, columns or a block of cells) selected, All Borders drew a separate box around each paragraph instead of a grid on the cell edges. With whole cells selected, para.borders now applies the kind to the cells as one block: all borders every cell, outside the block's edges, inside the lines between its cells, none clears every side, and one side toggles along that edge. A caret or text selection still borders the paragraphs. * #7874: block borders reach the cells beyond the edge and rows with gridBefore Review fixes for #7946. Each cell draws its own sides, so a line set on the selected block's edge is now also set on the facing side of the cell beyond it: No Border on a row no longer leaves the neighbouring rows' lines showing. A row's first and last cells count as the block's outer edge when the row skips grid columns (gridBefore/gridAfter), as the layout draws them. * #7874: Borders on whole cells judges the block's edges by the cells picked, and toggles a line the table style draws A row that skips the selected grid columns (w:gridBefore) leaves a gap: the selected cells above and below it now face it with an outer edge, so Outside draws those lines and Inside doesn't. One side now toggles on the line the cells show, the table style's included: the layout's cell border resolution is cell_borders in wordcraft-layout, and the first press on a Table Grid line takes it off. * #7874: Borders on whole cells looks up the selected cells by row, and toggles a line off only when it runs all along the edge A line the cells beyond an edge draw counts as shown only when every one of them draws it, so a line along part of a wide cell's edge is completed rather than taken off. * #7874: Borders on whole cells resolves the table's style, borders and grid width once per press wordcraft_layout::CellBorders resolves them for one table; cell_borders stays a wrapper. * #7874: Borders on whole cells takes in all of a vertically merged cell Selecting a cell merged over several rows from its first row selects only that row; the rest of the merge now counts as selected, so No Border clears the whole cell's outline. * #7874: Borders on whole cells counts a line beyond an edge as shown only where it spans the whole edge A row below that skips columns (w:gridAfter) draws the facing line along part of the edge only; the press now completes the line instead of taking it off.