Skip to content

Commit

Permalink
Merge pull request #3517 from wowsims/ui-high-res-scaling
Browse files Browse the repository at this point in the history
Fix scaling on larger screens
  • Loading branch information
kayla-glick committed Aug 21, 2023
2 parents cfda677 + 9263c8e commit f8b540c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
4 changes: 0 additions & 4 deletions ui/scss/core/components/detailed_results/_log_runner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
flex-direction: column;
}

.log-runner-control-bar {
margin-bottom: calc(var(--bs-gap) / 2);
}

.log-runner-logs > span {
display: block;
}
27 changes: 11 additions & 16 deletions ui/scss/shared/_global.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@use "sass:map";

:root {
--bs-body-font-size: 14px;
--container-padding: #{$gap-width-sm};
font-size: var(--bs-body-font-size);
}

@include media-breakpoint-up(lg) {
Expand All @@ -18,27 +20,20 @@

@include media-breakpoint-up(1080p) {
:root {
--bs-body-font-size: 16px !important;
--bs-body-font-size: 16px;
}
}

// // We want to apply only to 1440p monitors, NOT 1080p Ultrawide
// @media (min-width: map.get($grid-breakpoints, 1440p)) and (max-aspect-ratio: 16/9) {
// :root {
// --bs-body-font-size: 20px !important;
// }
// }

// @include media-breakpoint-up(4k) {
// :root {
// --bs-body-font-size: 32px !important;
// }
// }
// We want to apply only to 1440p monitors, NOT 1080p Ultrawide
@media (min-width: map.get($grid-breakpoints, 1440p)) and (max-aspect-ratio: 16/9) {
:root {
--bs-body-font-size: 24px;
}
}

// Use larger padding on 1080p+ ultrawide monitors
@media (min-width: map.get($grid-breakpoints, 1080p)) and (min-aspect-ratio: 17/9) {
@include media-breakpoint-up(4k) {
:root {
--container-padding: 6rem;
--bs-body-font-size: 32px;
}
}

Expand Down
2 changes: 0 additions & 2 deletions ui/scss/shared/_global_old.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
:root {
--bs-body-font-size: 14px;
--bs-gap: 1vw;
--theme-background-color: DarkSlateGrey;
--theme-background-image: linear-gradient(black, black);
--theme-background-opacity: 0.9;
Expand Down

0 comments on commit f8b540c

Please sign in to comment.