Skip to content

Commit

Permalink
Merge pull request #1026 from tblivet/fix/scroll_issue
Browse files Browse the repository at this point in the history
[NEW UI] Fix scroll issue
  • Loading branch information
Quetzacoalt91 authored Nov 22, 2024
2 parents 25cf2f1 + 2fe5153 commit 4be38a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _dev/src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ $cdk-prefix: "cdk-";
--#{$cdk-prefix}default-transition-duration,
0.15s
);
--#{$ua-prefix}header-height: var(--#{$cdk-prefix}header-height, 3.25rem);
--#{$ua-prefix}header-offset: 10rem;
--#{$ua-prefix}bo-background-color: var(--#{$ua-prefix}primary-200);
--#{$ua-prefix}error-img-filter: none;
Expand All @@ -64,12 +65,14 @@ body {
--#{$ua-prefix}bo-background-color: #eff1f2;
--#{$ua-prefix}error-img-filter: invert(69%) sepia(66%) saturate(1340%) hue-rotate(151deg)
brightness(88%) contrast(91%);
--#{$ua-prefix}header-height: 2.5rem;
}

&:has(.v1-7-3-0) {
--#{$ua-prefix}bo-background-color: #eff1f2;
--#{$ua-prefix}error-img-filter: invert(75%) sepia(64%) saturate(6023%) hue-rotate(161deg)
brightness(96%) contrast(103%);
--#{$ua-prefix}header-height: 2.5rem;
}
}

Expand Down
1 change: 1 addition & 0 deletions _dev/src/scss/components/form/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ $e: ".ua-switch";
position: absolute;
width: 0;
height: 0;
outline: none;

&:checked {
+ #{$e}__label {
Expand Down
8 changes: 6 additions & 2 deletions _dev/src/scss/layouts/_logs-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
html {
&:has(#{$ua-id}) {
// Need class use in #ua_step_content to make it work
container-type: size;

&:has(.update-page, .restore-page) {
container-type: size;
container-name: html-height;

body {
overflow-y: auto;
background-color: var(--#{$ua-prefix}bo-background-color);

#nav-sidebar {
height: calc(100% - var(--#{$ua-prefix}header-height));
}
}

#main {
Expand Down

0 comments on commit 4be38a1

Please sign in to comment.