Update backups page to be responsive
This commit is contained in:
parent
3d76b07a9a
commit
4ddb63d79c
|
@ -14,7 +14,6 @@
|
||||||
Tags,
|
Tags,
|
||||||
Tag,
|
Tag,
|
||||||
Table,
|
Table,
|
||||||
Page,
|
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { backups, licensing, auth, admin, overview } from "stores/portal"
|
import { backups, licensing, auth, admin, overview } from "stores/portal"
|
||||||
import { createPaginationStore } from "helpers/pagination"
|
import { createPaginationStore } from "helpers/pagination"
|
||||||
|
@ -223,29 +222,30 @@
|
||||||
</div>
|
</div>
|
||||||
{:else if loaded}
|
{:else if loaded}
|
||||||
<Layout noPadding gap="M" alignContent="start">
|
<Layout noPadding gap="M" alignContent="start">
|
||||||
<div class="search">
|
<div class="controls">
|
||||||
<div class="select">
|
<div class="search">
|
||||||
<Select
|
<div class="select">
|
||||||
placeholder="All"
|
<Select
|
||||||
label="Type"
|
placeholder="All"
|
||||||
options={filters}
|
label="Type"
|
||||||
getOptionValue={filter => filter.value}
|
options={filters}
|
||||||
getOptionLabel={filter => filter.label}
|
getOptionValue={filter => filter.value}
|
||||||
bind:value={filterOpt}
|
getOptionLabel={filter => filter.label}
|
||||||
|
bind:value={filterOpt}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DatePicker
|
||||||
|
range={true}
|
||||||
|
label="Date Range"
|
||||||
|
on:change={e => {
|
||||||
|
if (e.detail[0].length > 1) {
|
||||||
|
startDate = e.detail[0][0].toISOString()
|
||||||
|
endDate = e.detail[0][1].toISOString()
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<DatePicker
|
<div>
|
||||||
range={true}
|
|
||||||
label="Date Range"
|
|
||||||
on:change={e => {
|
|
||||||
if (e.detail[0].length > 1) {
|
|
||||||
startDate = e.detail[0][0].toISOString()
|
|
||||||
endDate = e.detail[0][1].toISOString()
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="split-buttons">
|
|
||||||
<ActionButton on:click={modal.show} icon="SaveAsFloppy">
|
<ActionButton on:click={modal.show} icon="SaveAsFloppy">
|
||||||
Create new backup
|
Create new backup
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
|
@ -291,15 +291,29 @@
|
||||||
gap: var(--spacing-xl);
|
gap: var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-end;
|
||||||
|
gap: var(--spacing-xl);
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
.search {
|
.search {
|
||||||
|
flex: 1 1 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--spacing-xl);
|
gap: var(--spacing-xl);
|
||||||
width: 100%;
|
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
.search :global(.spectrum-InputGroup) {
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
flex-basis: 160px;
|
flex-basis: 160px;
|
||||||
|
width: 0;
|
||||||
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
|
@ -309,13 +323,6 @@
|
||||||
margin-top: var(--spacing-xl);
|
margin-top: var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
.split-buttons {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
Loading…
Reference in New Issue