Row layout for builds.html

This commit is contained in:
Stéphane Bidoul 2021-11-20 13:06:43 +01:00
parent 0547a73096
commit 48a1d7236f
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -1,6 +1,15 @@
<html> <html>
<head> <head>
<title>Runboat builds</title> <title>Runboat builds</title>
<style>
.row {
display: flex;
flex-direction: row;
}
runboat-build {
flex: 0 0 15em;
}
</style>
</head> </head>
<body> <body>
<div id="builds"></div> <div id="builds"></div>
@ -30,6 +39,7 @@
var rowElement = document.getElementById(rowId); var rowElement = document.getElementById(rowId);
if (!rowElement) { if (!rowElement) {
rowElement = document.createElement("div"); rowElement = document.createElement("div");
rowElement.class = "row";
rowElement.id = rowId; rowElement.id = rowId;
document.getElementById("builds").appendChild(rowElement); document.getElementById("builds").appendChild(rowElement);
} }