Webapp: nicer styling of the 'Delete Jobs' confirmation popover
By using the flexbox layout model better, I could remove the `<div class="align-right">` elements. And by adding a more visual border and shadow, the popover looks good without having its height set explicitly. This in turn makes it look good also when it's wrapping due to a small screen size.
This commit is contained in:
parent
af2f0ec520
commit
790159d735
@ -347,26 +347,17 @@ dl dd:empty {
|
||||
.btn-bar {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-wrap: wrap;
|
||||
gap: calc(var(--spacer-sm) / 3) var(--spacer-sm);
|
||||
padding: var(--spacer-sm) 0;
|
||||
}
|
||||
|
||||
.btn-bar .align-right,
|
||||
.btn-bar-group .align-right {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.btn-bar .align-center,
|
||||
.btn-bar-group .align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.btn-bar-group {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
padding: var(--spacer-sm) 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.btn-bar-group .btn-bar {
|
||||
|
@ -154,12 +154,17 @@ export default {
|
||||
background-color: var(--color-background-popover);
|
||||
border-radius: var(--border-radius);
|
||||
border: var(--border-color) var(--border-width);
|
||||
box-shadow:
|
||||
inset 0 0 0.3em var(--color-danger),
|
||||
0 0 0.3rem var(--color-background),
|
||||
0 0 3rem var(--color-background);
|
||||
box-sizing: border-box;
|
||||
color: var(--color-text);
|
||||
display: flex;
|
||||
height: 3.5em;
|
||||
flex-wrap: wrap;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
padding: 1rem 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
@ -2,13 +2,11 @@
|
||||
<h2 class="column-title">Jobs</h2>
|
||||
<div class="btn-bar-group">
|
||||
<job-actions-bar :activeJobID="jobs.activeJobID" @mass-select="handleMassSelect" />
|
||||
<div class="align-right">
|
||||
<status-filter-bar
|
||||
:availableStatuses="availableStatuses"
|
||||
:activeStatuses="shownStatuses"
|
||||
@click="toggleStatusFilter" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="job-list with-clickable-row" id="flamenco_job_list"></div>
|
||||
</div>
|
||||
|
@ -2,13 +2,11 @@
|
||||
<h3 class="sub-title">Tasks</h3>
|
||||
<div class="btn-bar-group">
|
||||
<task-actions-bar />
|
||||
<div class="align-right">
|
||||
<status-filter-bar
|
||||
:availableStatuses="availableStatuses"
|
||||
:activeStatuses="shownStatuses"
|
||||
@click="toggleStatusFilter" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
@keydown="disableSorting"
|
||||
|
@ -3,15 +3,12 @@
|
||||
|
||||
<div class="btn-bar-group">
|
||||
<worker-actions-bar />
|
||||
|
||||
<div class="align-right">
|
||||
<status-filter-bar
|
||||
:availableStatuses="availableStatuses"
|
||||
:activeStatuses="shownStatuses"
|
||||
classPrefix="worker-"
|
||||
@click="toggleStatusFilter" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="workers-list with-clickable-row" id="flamenco_workers_list"></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user