Slightly move the resizer on the sidebar (bug 2019585)

And add a white border to the resizer in order to make it visible whatever the background is.
This commit is contained in:
Calixte Denizet 2026-02-26 14:23:17 +01:00
parent bc8efa190c
commit 241e8c18b9
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F
3 changed files with 10 additions and 4 deletions

View File

@ -243,6 +243,7 @@
padding-bottom: 16px;
flex-direction: column;
align-items: flex-start;
overflow-y: visible;
#editorCommentsSidebarHeader {
width: 100%;

View File

@ -29,6 +29,7 @@
--sidebar-max-width: 632px;
--sidebar-width: 239px;
--resizer-width: 4px;
--resizer-shift: calc(0px - var(--resizer-width) - 2px);
--resizer-hover-bg-color: light-dark(#0062fa, #00cadb);
@media screen and (forced-colors: active) {
@ -49,6 +50,7 @@
max-width: var(--sidebar-max-width);
backdrop-filter: var(--sidebar-backdrop-filter);
box-sizing: border-box;
position: relative;
.sidebarResizer {
width: var(--resizer-width);
@ -56,9 +58,11 @@
forced-color-adjust: none;
cursor: ew-resize;
position: absolute;
inset-block: calc(var(--sidebar-padding) + var(--sidebar-border-radius));
inset-inline-start: calc(0px - var(--resizer-width) / 2);
transition: background-color 0.5s ease-in-out;
inset-block: 0;
inset-inline-start: var(--resizer-shift);
transition:
background-color 0.5s ease-in-out,
border-color 0.5s ease-in-out;
box-sizing: border-box;
border: 1px solid transparent;
border-block-width: 0;
@ -66,6 +70,7 @@
&:hover {
background-color: var(--resizer-hover-bg-color);
border-color: white;
}
&:focus-visible {
background-color: var(--resizer-hover-bg-color);

View File

@ -189,7 +189,7 @@
transition-timing-function: var(--sidebar-transition-timing-function);
.sidebarResizer {
inset-inline-start: 100%;
inset-inline-start: calc(100% + 4px);
}
.viewsManagerButton {