Skip to content

Commit

Permalink
fix back button margins
Browse files Browse the repository at this point in the history
  • Loading branch information
goemen committed May 8, 2024
1 parent bca7fbf commit 3b35e64
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
12 changes: 9 additions & 3 deletions frontend/src/components/DraftReportPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container class="d-flex justify-center h-100">
<v-container class="d-flex justify-center h-100 narrow">
<v-form ref="inputForm" class="w-100 h-100">
<v-banner
sticky
Expand Down Expand Up @@ -185,8 +185,14 @@ async function downloadPdf(reportId: string | undefined) {
<style scoped lang="scss">
@import "../scss/_common.scss";
.back-button-banner {
width: 90% !important;
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.back-button-banner {
padding-left: 0;
}
</style>
12 changes: 6 additions & 6 deletions frontend/src/components/InputForm.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container class="d-flex justify-center h-100">
<v-container class="d-flex justify-center h-100 narrow">
<v-form ref="inputForm" @submit.prevent="submit" class="w-100 h-100">
<v-row no-gutters>
<v-col>
Expand Down Expand Up @@ -1165,18 +1165,18 @@ export default {
@import "../scss/_common.scss";
.back-button-banner {
width: 90% !important;
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.alert-info {
width: 90% !important;
@include layout-margins;
.back-button-banner {
padding-left: 0;
}
textarea::placeholder {
text-align: right;
transform: translateY(95px);
Expand Down
15 changes: 10 additions & 5 deletions frontend/src/components/PublishedReportPage.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<v-container class="d-flex justify-center h-100">
<v-container class="d-flex justify-center h-100 narrow">
<v-form ref="inputForm" class="w-100 h-100">
<v-banner
sticky
width=" fit-content"
width="fit-content"
border="none"
bg-color="rgba(255, 255, 255, 0)"
class="sticky-top"
Expand Down Expand Up @@ -112,15 +112,20 @@ const editReport = async () => {
<style lang="scss">
@import '../scss/_common.scss';
.sticky-top {
@include layout-margins;
width: 90% !important;
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.sticky-top {
padding-left: 0;
z-index: 190;
bottom: none !important;
top: 0px !important;
}
.sticky-bottom {
z-index: 191;
bottom: 0px !important;
Expand Down

0 comments on commit 3b35e64

Please sign in to comment.