mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00:00
fix extra scroll bar on mobile
This commit is contained in:
parent
bdd8e54be9
commit
4273640530
1 changed files with 12 additions and 0 deletions
|
@ -221,6 +221,9 @@ definePageMetadata(() => ({
|
|||
</script>
|
||||
|
||||
<style lang="scss" module>
|
||||
//This inspection complains about duplicate "height" properties, but this is needed because "dvh" units are not supported in all browsers.
|
||||
//The earlier "vh" provide a "close enough" approximation for older browsers.
|
||||
//noinspection CssOverwrittenProperties
|
||||
.root {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr min-content;
|
||||
|
@ -231,9 +234,18 @@ definePageMetadata(() => ({
|
|||
gap: 12px;
|
||||
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
max-width: 1200px;
|
||||
|
||||
// The universal layout inserts a "spacer" thing that causes a stray scroll bar.
|
||||
// We have to create fake "space" for it to "roll up" and back into the viewport, which removes the scrollbar.
|
||||
margin-bottom: calc(-1 * var(--minBottomSpacing));
|
||||
|
||||
// Some "just in case" backup properties.
|
||||
// These should not be needed, but help to maintain the layout if the above trick ever stops working.
|
||||
overflow: hidden;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
|
Loading…
Reference in a new issue