Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile] Center Confirmation Dialog Texts #7492

Merged
merged 10 commits into from
Mar 3, 2024
4 changes: 3 additions & 1 deletion src/api/overlays/components/dialog-component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
.c-message {
display: flex;
align-items: center;

body.mobile & { // Centers confirmation dialog on screen.
margin-top: 40vh;
}
> * + * {
margin-left: $interiorMarginLg;
}
Expand Down
11 changes: 11 additions & 0 deletions src/api/overlays/components/overlay-component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
display: flex;
flex-direction: column;
padding: $overlayInnerMargin;
body.mobile & { // Centers the overlay dialog for mobile
position: relative;
height: 100vh;
width: 100vw;
}
}

&__close-button {
Expand All @@ -45,6 +50,9 @@
flex-direction: column;
outline: none;
overflow: auto;
body.mobile & {
flex: none;
}
}

&__top-bar {
Expand Down Expand Up @@ -78,6 +86,9 @@
display: flex;
justify-content: flex-end;
margin-top: $interiorMargin;
body.mobile & {
justify-content: center;
}

> * + * {
margin-left: $interiorMargin;
Expand Down
Loading