Split action icons into their own columns, tighten spacing, no crosshair
Link and edit icons get one dedicated column each instead of sharing one text-align: center cell -- with a shared cell, a row with only the edit icon (non-linkable types) centered differently than a row with both icons, so pencils never lined up vertically across rows. Separate columns line up by construction. Verified: identical left offset (141px) for the edit icon across 15 consecutive rows. Also: tighter cell padding (was using the table's default 0.6rem horizontal padding, way more than an icon needs) and no column-hover crosshair on these technical columns -- nothing meaningful to compare across rows there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -279,6 +279,12 @@
|
||||
onCellHover(evt) {
|
||||
const cell = evt.target.closest('td, th');
|
||||
if (!cell) return;
|
||||
// No crosshair on the technical action columns (link/edit icons) --
|
||||
// there's nothing to compare across rows there.
|
||||
if (cell.classList.contains('actions-col')) {
|
||||
this.clearColHover();
|
||||
return;
|
||||
}
|
||||
// Logical column position, not DOM sibling index: the totals row's
|
||||
// first cell has colspan="4", which shifts every cell.cellIndex
|
||||
// after it out of alignment with the body rows.
|
||||
|
||||
Reference in New Issue
Block a user