Skip to content

Commit

Permalink
fix: make the Settings footer sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
ianshade committed Nov 30, 2021
1 parent c677e1c commit 6ad21ff
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions src/renderer/components/Settings.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<b-container fluid>
<b-row>
<b-col>
<b-form @submit="onSubmit" @reset="onReset">
<b-form @submit="onSubmit" @reset="onReset">
<b-row>
<b-col id="content">
<legend>Processes</legend>
<b-form-group id="basePathInputGroup" horizontal label="Base Path:" label-for="basePathInput">
<b-input-group>
Expand Down Expand Up @@ -138,18 +138,22 @@
</template>
</b-table>
</b-form-group>

</b-col>
</b-row>
<b-row id="footer">
<b-col>
<b-button type="submit" variant="primary">
Save
</b-button>
<b-button type="reset" variant="danger">
Reset
</b-button>

<p>Version: {{ version }}</p>
</b-form>
</b-col>
</b-row>
</b-col>
<b-col id="version">
<p class="text-right">Version: {{ version }}</p>
</b-col>
</b-row>
</b-form>
</b-container>
</template>

Expand Down Expand Up @@ -227,4 +231,24 @@ export default {
}
</script>

<style scoped></style>
<style lang="scss" scoped>
@import '../../../node_modules/bootstrap/scss/bootstrap';
@import '../../../node_modules/bootstrap/scss/_variables';
$button-height: 40px;
$footer-padding: 1rem;
$footer-height: calc(#{$button-height} + #{2 * $footer-padding});
#content {
margin-bottom: $footer-height;
}
#footer {
background: $light;
bottom: 0;
width: 100%;
height: $footer-height;
padding-top: $footer-padding;
position: fixed;
}
#version {
padding-top: $btn-padding-y;
}
</style>

0 comments on commit 6ad21ff

Please sign in to comment.