Skip to content

Commit

Permalink
Fix: Sidebar - Right side overlap #1052
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Dec 28, 2024
1 parent 7d96af3 commit f528701
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 46 deletions.
48 changes: 24 additions & 24 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/autohide/sidebar/_static.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

:root[inFullscreen="true"] #sidebar-box {
&:not([positionend="true"]) {
&:not([positionend]) {
margin-inline-start: var(--uc-sidebar-fullscreen-margin) !important;
will-change: margin-inline-start;

Expand All @@ -20,7 +20,7 @@
}
}

&[positionend="true"] {
&[positionend] {
margin-inline-end: var(--uc-sidebar-fullscreen-margin) !important;
will-change: margin-inline-end;

Expand All @@ -45,7 +45,7 @@
:root[inFullscreen="true"] #sidebar-box {
transition: margin-inline-start var(--uc-autohide-fullscreen-sidebar-speed) var(--animation-easing-function) var(--uc-autohide-sidebar-delay) !important;

&[positionend="true"] {
&[positionend] {
transition-property: margin-inline-end !important;
}
&:is(:hover, :focus-within),
Expand Down
2 changes: 1 addition & 1 deletion src/icons/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
--uc-sidebar-icon: url("chrome://browser/skin/sidebars.svg");
--uc-sidebar-icon-reverse: url("chrome://browser/skin/sidebars-right.svg");
@include Has {
&:has(#sidebar-box[positionend="true"]) {
&:has(#sidebar-box[positionend]) {
--uc-sidebar-icon: url("chrome://browser/skin/sidebars-right.svg");
--uc-sidebar-icon-reverse: url("chrome://browser/skin/sidebars.svg");
}
Expand Down
8 changes: 4 additions & 4 deletions src/navbar/_as_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
opacity: 0;
visibility: hidden; // If use `collapse`, inline `--urlbar-toolbar-height` variable is calculated strangely small.
}
:root:has(#sidebar-box[positionend="true"]) #nav-bar {
:root:has(#sidebar-box[positionend]) #nav-bar {
right: 0;
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@
position: absolute;
height: 100%;

&[positionend="true"] {
&[positionend] {
right: 0;
}
}
Expand All @@ -125,10 +125,10 @@
height: calc(100% - var(--uc-customization-conatiner-margin));
}

&:has(#sidebar-box:not([positionend="true"])) #customization-container {
&:has(#sidebar-box:not([positionend])) #customization-container {
margin-inline-start: var(--uc-sidebar-activate-width);
}
&:has(#sidebar-box[positionend="true"]) #customization-container {
&:has(#sidebar-box[positionend]) #customization-container {
margin-inline-end: var(--uc-sidebar-activate-width);
}

Expand Down
4 changes: 2 additions & 2 deletions src/sidebar/_overlap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
position: relative !important;

box-shadow: var(--uc-sidebar-shadow-position) 0px 15px -10px var(--uc-sidebar-shadow-color);
&[positionend="true"] {
&[positionend] {
--uc-sidebar-shadow-position: calc(-1 * var(--uc-sidebar-shadow-position-default));
}
}
Expand All @@ -53,7 +53,7 @@
}

@include Option("userChrome.sidebar.overlap") {
#sidebar-box[positionend="true"] {
#sidebar-box[positionend] {
direction: rtl;
}

Expand Down

0 comments on commit f528701

Please sign in to comment.