Skip to content

Commit

Permalink
[UI] Fix height of install and settings dialogs (#3254)
Browse files Browse the repository at this point in the history
Fix height of install and settings dialogs
  • Loading branch information
arielj authored Nov 22, 2023
1 parent f6d7cf3 commit fdaadf7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.InstallModal__dialog {
width: 700px;
min-height: fit-content;
max-height: 90vh;
min-width: fit-content;
max-width: 80vw;
height: 90vh;
max-height: 1000px;
}

.InstallModal__dialog > .anticheatInfo {
Expand Down
14 changes: 14 additions & 0 deletions src/frontend/screens/Settings/components/SettingsModal/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,17 @@
width: 100%;
}
}

.InstallModal__dialog:has(.settingsDialogContent) {
margin-top: max(2rem, 13vh);
@media screen and (max-height: 800px) {
margin-top: max(2rem, 8vh);
.settingsDialogContent {
min-height: 70vh;
}
}

@media screen and (max-height: 700px) {
margin-top: max(2rem, 6vh);
}
}

0 comments on commit fdaadf7

Please sign in to comment.