Skip to content

Commit c7a64c8

Browse files
authored
fix: prevent checkout button from being hidden by viewport height issues (#1009)
1 parent d298145 commit c7a64c8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

frontend/src/components/layouts/Checkout/Checkout.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ $font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sa
55

66
.container {
77
display: flex;
8+
// Use dvh (dynamic viewport height) with fallback for older browsers
9+
// This fixes iOS Safari where 100vh includes the address bar height
810
min-height: 100vh;
11+
min-height: 100dvh;
912
font-family: $font-body;
1013

1114
// CSS variables are set by CheckoutThemeProvider via MantineProvider cssVariablesResolver

frontend/src/components/layouts/Checkout/CheckoutContent/CheckoutContent.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22

33
.main {
44
position: relative;
5+
// Use dvh (dynamic viewport height) with fallback for older browsers
6+
// This fixes iOS Safari where 100vh includes the address bar height,
7+
// causing content (like the Complete Order button) to be cut off
58
min-height: calc(100vh - 60px);
9+
min-height: calc(100dvh - 60px);
610
height: auto;
711
overflow-y: auto;
812
padding: 20px 60px 40px;
13+
// Ensure content is visible above iOS safe area
14+
padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
915

1016
@include mixins.scrollbar();
1117

1218
@include mixins.respond-below(md) {
1319
padding: 20px 20px 40px;
20+
padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
1421
}
1522

1623
.innerContainer {

0 commit comments

Comments
 (0)