Properly size css grid
This commit is contained in:
@@ -65,6 +65,9 @@ export function drawDraftingBoard() {
|
||||
|
||||
let rows = display_legs.length;
|
||||
|
||||
element_board.style.setProperty("--drafting-board-number-locations", display_locations.length);
|
||||
element_board.style.setProperty("--drafting-board-number-legs", rows);
|
||||
|
||||
for (let display_location of display_locations) {
|
||||
let el_location_name = EL("div", {
|
||||
class: [ "station-name" ],
|
||||
@@ -85,7 +88,7 @@ export function drawDraftingBoard() {
|
||||
"grid-column-start": grid_location_indexes[display_location.id]["column-start"],
|
||||
"grid-column-end": grid_location_indexes[display_location.id]["column-end"],
|
||||
"grid-row-start": 2,
|
||||
"grid-row-end": rows + 2,
|
||||
"grid-row-end": rows + 3,
|
||||
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user