Skip to content

Commit

Permalink
access request: layout adjustments (mobile devices) (#3404)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ricci <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 7, 2024
1 parent 894fd42 commit ff294e0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
8 changes: 8 additions & 0 deletions webapp/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ body {
height: 100vh;
}

@media screen and (max-width: 768px) {
#main {
/* 100vh not working properly in mobile devices browsers
(see https://bugs.webkit.org/show_bug.cgi?id=141832) */
height: 92vh;
}
}

.main__system-error {
@include full-screen-fixed();
display: grid;
Expand Down
8 changes: 8 additions & 0 deletions webapp/views/Arena/Routes/Notification/Notification.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import 'webapp/style/vars';

$appNotificationWidth: 500px;
$appNotificationWidthSmallScreens: 90vw;

.notification {
position: fixed;
Expand All @@ -23,6 +24,13 @@ $appNotificationWidth: 500px;
}
}

@media screen and (max-width: 768px) {
.notification {
width: $appNotificationWidthSmallScreens;
transform: translate(calc(50vw - #{$appNotificationWidthSmallScreens / 2}), 15px);
}
}

.notification.info {
background-color: lighten($blueLightActive, 18%);
border-color: lighten($blueLightActive, 5%);
Expand Down
11 changes: 9 additions & 2 deletions webapp/views/Guest/Error/Error.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
font-size: 0.9rem;
font-weight: 600;
color: white;
padding: 0.5rem 0;
padding: 0.5rem;
position: fixed;
width: 30vw;
left: 35vw;
top: 15vh;
top: 20px;
}

@media screen and (max-width: 768px) {
.guest-errors {
width: 80vw;
left: 10vw;
}
}

0 comments on commit ff294e0

Please sign in to comment.