mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
improve layout on large screens
This commit is contained in:
parent
4316eb8a00
commit
e29568f627
@ -259,7 +259,7 @@ std::string Laminar::getStatus(MonitorScope scope) {
|
||||
populateArtifacts(j, scope.job, scope.num);
|
||||
j.EndArray();
|
||||
} else if(scope.type == MonitorScope::JOB) {
|
||||
const uint runsPerPage = 10;
|
||||
const uint runsPerPage = 20;
|
||||
j.startArray("recent");
|
||||
// ORDER BY param cannot be bound
|
||||
std::string order_by;
|
||||
@ -364,7 +364,7 @@ std::string Laminar::getStatus(MonitorScope scope) {
|
||||
j.EndObject();
|
||||
} else { // Home page
|
||||
j.startArray("recent");
|
||||
db->stmt("SELECT * FROM builds ORDER BY completedAt DESC LIMIT 15")
|
||||
db->stmt("SELECT * FROM builds ORDER BY completedAt DESC LIMIT 20")
|
||||
.fetch<str,uint,str,time_t,time_t,time_t,int>([&](str name,uint build,str context,time_t,time_t started,time_t completed,int result){
|
||||
j.StartObject();
|
||||
j.set("name", name)
|
||||
|
@ -66,15 +66,13 @@
|
||||
<div><canvas id="chartUtil"></canvas></div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 5px; padding: 5px;">
|
||||
<div id="page-home-plots">
|
||||
<div><canvas id="chartBpd"></canvas></div>
|
||||
<div><canvas id="chartBpj"></canvas></div>
|
||||
<div><canvas id="chartTpj"></canvas></div>
|
||||
<div><canvas id="chartBuildTimeChanges"></canvas></div>
|
||||
<div><canvas id="chartBuildTimeDist"></canvas></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div></template>
|
||||
|
||||
|
@ -214,6 +214,8 @@ button:not([disabled]) { cursor: pointer; color: var(--main-fg); }
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
padding: 15px;
|
||||
gap: 15px;
|
||||
max-width: 1600px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
@media (max-width: 650px) {
|
||||
@ -221,6 +223,19 @@ button:not([disabled]) { cursor: pointer; color: var(--main-fg); }
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
#page-home-plots {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
padding: 5px;
|
||||
gap: 5px;
|
||||
max-width: 1600px;
|
||||
margin: auto;
|
||||
}
|
||||
@media (max-width: 1095px) {
|
||||
#page-home-plots {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
#page-job-main {
|
||||
display: grid;
|
||||
grid-template: auto 1fr / minmax(550px, 1fr) 1fr;
|
||||
|
Loading…
Reference in New Issue
Block a user