Grid cell label: left-align, count left of index
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1294,7 +1294,6 @@ function render_grid_viewer() {
|
|||||||
cell.classList.add('empty');
|
cell.classList.add('empty');
|
||||||
}
|
}
|
||||||
const label_el = qs(cell, '.grid-cell-label');
|
const label_el = qs(cell, '.grid-cell-label');
|
||||||
label_el.textContent = `R${row + 1}C${col + 1}`;
|
|
||||||
|
|
||||||
const count = all_inventory.filter(inv =>
|
const count = all_inventory.filter(inv =>
|
||||||
inv.location_type === 'grid' && inv.grid_id === grid.id &&
|
inv.location_type === 'grid' && inv.grid_id === grid.id &&
|
||||||
@@ -1307,6 +1306,10 @@ function render_grid_viewer() {
|
|||||||
label_el.appendChild(badge);
|
label_el.appendChild(badge);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const index_span = document.createElement('span');
|
||||||
|
index_span.textContent = `R${row + 1}C${col + 1}`;
|
||||||
|
label_el.appendChild(index_span);
|
||||||
|
|
||||||
cell.addEventListener('click', (e) => open_cell_inventory(grid, row, col, e));
|
cell.addEventListener('click', (e) => open_cell_inventory(grid, row, col, e));
|
||||||
return cell;
|
return cell;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1484,13 +1484,13 @@ nav {
|
|||||||
|
|
||||||
.grid-cell-label {
|
.grid-cell-label {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.3em;
|
gap: 0.3em;
|
||||||
font-size: 0.65rem;
|
font-size: 0.65rem;
|
||||||
color: var(--text-dim);
|
color: var(--text-dim);
|
||||||
text-align: center;
|
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
|
padding-left: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-cell-count {
|
.grid-cell-count {
|
||||||
|
|||||||
Reference in New Issue
Block a user