Skip to content

Commit

Permalink
fix(ui): make topbar and actions sticky on popups
Browse files Browse the repository at this point in the history
Fixes #3372
  • Loading branch information
robertsLando committed Oct 23, 2023
1 parent bdf66cb commit 87e88ef
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/components/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
:persistent="options.persistent"
>
<v-card>
<v-toolbar :color="options.color" dark dense flat>
<v-toolbar
class="sticky-title"
:color="options.color"
dark
dense
flat
>
<v-toolbar-title class="white--text">{{
title
}}</v-toolbar-title>
Expand Down Expand Up @@ -197,7 +203,7 @@
:rules="[validQR]"
></qr-reader>
</v-card-text>
<v-card-actions class="pt-0">
<v-card-actions class="sticky-actions pt-0">
<v-spacer></v-spacer>
<v-btn
v-if="!options.qrScan"
Expand Down Expand Up @@ -384,3 +390,20 @@ export default {
},
}
</script>
<style scoped>
.v-card::v-deep .sticky-title {
position: sticky;
top: 0;
z-index: 3;
background-color: inherit;
border-bottom: 1px solid var(--v-secondary-base);
}
.v-card::v-deep .sticky-actions {
position: sticky;
z-index: 3;
bottom: 0;
background-color: inherit;
}
</style>

0 comments on commit 87e88ef

Please sign in to comment.