Fix some layout issues in the CSV import screen

- Align headers with the settings below them
- More equally space rows
- Ensure Import button is anchored to the bottom (
caused by 9b0729970e)
This commit is contained in:
Damien Elmes 2022-06-02 18:47:41 +10:00
parent 9e5fef00d8
commit 92e13ae0d3
2 changed files with 17 additions and 2 deletions

View file

@ -76,7 +76,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
</script> </script>
<Container --gutter-inline="0.75rem" --gutter-block="0.25rem"> <Container class="csv-page">
<Row --cols={2}> <Row --cols={2}>
<Col --col-size={1} breakpoint="md"> <Col --col-size={1} breakpoint="md">
<Container> <Container>
@ -107,3 +107,17 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</Row> </Row>
<StickyFooter {path} {onImport} /> <StickyFooter {path} {onImport} />
</Container> </Container>
<style lang="scss">
:global(.csv-page) {
--gutter-inline: 0.25rem;
:global(.row) {
// rows have negative margins by default
--bs-gutter-x: 0;
// ensure equal spacing between tall rows like
// dropdowns, and short rows like checkboxes
min-height: 3em;
}
}
</style>

View file

@ -17,15 +17,16 @@
body { body {
width: min(100vw, 70em); width: min(100vw, 70em);
margin: 0 auto; margin: 0 auto;
height: 100%;
} }
html { html {
overflow-x: hidden; overflow-x: hidden;
height: 100%;
} }
#main { #main {
padding: 0.5em 0.5em 1em 0.5em; padding: 0.5em 0.5em 1em 0.5em;
height: 100vh;
} }
// override the default down arrow colour in <select> elements // override the default down arrow colour in <select> elements