Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Use CSS to align
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 7, 2022
1 parent 76e9e04 commit 1f4d618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web_editor/js/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function makeLaneCard(lane, idx, app) {
node.appendChild(wrapInCenterDiv(width(lane)));

var editRow = document.createElement("div");
editRow.align = "center";
editRow.style = "text-align: center";

var left = iconObj("left");
if (idx != 0) {
Expand Down Expand Up @@ -118,7 +118,7 @@ function backgroundColor(lane) {

function width(lane) {
var div = document.createElement("div");
div.align = "center";
div.style = "text-align: center";
if (lane.width) {
div.innerText = `${lane.width}m`;
}
Expand All @@ -145,7 +145,7 @@ function iconObj(name) {

function wrapInCenterDiv(obj) {
var div = document.createElement("div");
div.align = "center";
div.style = "text-align: center";
div.appendChild(obj);
return div;
}

0 comments on commit 1f4d618

Please sign in to comment.