Skip to content

Commit 2e545ae

Browse files
authored
fix(VSystemBar): reserve space for hidden scrollbar from VOverlay (#16734)
Fixes #16727
1 parent f32a720 commit 2e545ae

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

packages/docs/src/components/app/V2Banner.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<template>
22
<v-system-bar
33
v-if="showBanner"
4-
class="px-4 py-1 "
54
color="#e7f0f6"
65
height="52"
76
>
8-
<div class="text-blue-darken-3 text-start">
7+
<div class="text-blue-darken-3 text-start ms-4">
98
<div class="text-caption">
109
You are currently viewing the documentation for <strong>Vuetify 3</strong>
1110
</div>
@@ -25,7 +24,7 @@
2524
</v-btn>
2625

2726
<v-btn
28-
class="ms-6 me-2"
27+
class="ms-6 me-6"
2928
density="comfortable"
3029
size="small"
3130
icon="$clear"

packages/vuetify/src/components/VSystemBar/VSystemBar.sass

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
height: $system-bar-height
99
justify-content: $system-bar-justify-content
1010
max-width: 100%
11-
padding: $system-bar-padding
11+
padding-inline-start: $system-bar-padding-x
12+
padding-inline-end: $system-bar-padding-x
1213
position: relative
1314
text-align: $system-bar-text-align
1415
width: 100%
@@ -26,3 +27,6 @@
2627

2728
&--window
2829
height: $system-bar-window-height
30+
31+
&:not(.v-system-bar--absolute)
32+
padding-inline-end: calc(var(--v-scrollbar-offset) + #{$system-bar-padding-x})

packages/vuetify/src/components/VSystemBar/_variables.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $system-bar-justify-content: flex-end !default;
1616
$system-bar-letter-spacing: tools.map-deep-get(settings.$typography, 'caption', 'letter-spacing') !default;
1717
$system-bar-lights-out-background: rgba(var(--v-theme-background), 0.7) !default;
1818
$system-bar-line-height: tools.map-deep-get(settings.$typography, 'caption', 'line-height') !default;
19-
$system-bar-padding: 0 8px !default;
19+
$system-bar-padding-x: 8px !default;
2020
$system-bar-positions: absolute fixed !default;
2121
$system-bar-text-align: end !default;
2222
$system-bar-text-transform: tools.map-deep-get(settings.$typography, 'caption', 'text-transform') !default;
@@ -35,3 +35,6 @@ $system-bar-typography: (
3535
$system-bar-line-height,
3636
$system-bar-text-transform
3737
);
38+
39+
// Deprecated
40+
$system-bar-padding: 0 8px !default;

0 commit comments

Comments
 (0)