Skip to content

Commit 241e8c1

Browse files
committed
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.
1 parent bc8efa1 commit 241e8c1

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

web/comment_manager.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@
243243
padding-bottom: 16px;
244244
flex-direction: column;
245245
align-items: flex-start;
246+
overflow-y: visible;
246247

247248
#editorCommentsSidebarHeader {
248249
width: 100%;

web/sidebar.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
--sidebar-max-width: 632px;
3030
--sidebar-width: 239px;
3131
--resizer-width: 4px;
32+
--resizer-shift: calc(0px - var(--resizer-width) - 2px);
3233
--resizer-hover-bg-color: light-dark(#0062fa, #00cadb);
3334

3435
@media screen and (forced-colors: active) {
@@ -49,23 +50,27 @@
4950
max-width: var(--sidebar-max-width);
5051
backdrop-filter: var(--sidebar-backdrop-filter);
5152
box-sizing: border-box;
53+
position: relative;
5254

5355
.sidebarResizer {
5456
width: var(--resizer-width);
5557
background-color: transparent;
5658
forced-color-adjust: none;
5759
cursor: ew-resize;
5860
position: absolute;
59-
inset-block: calc(var(--sidebar-padding) + var(--sidebar-border-radius));
60-
inset-inline-start: calc(0px - var(--resizer-width) / 2);
61-
transition: background-color 0.5s ease-in-out;
61+
inset-block: 0;
62+
inset-inline-start: var(--resizer-shift);
63+
transition:
64+
background-color 0.5s ease-in-out,
65+
border-color 0.5s ease-in-out;
6266
box-sizing: border-box;
6367
border: 1px solid transparent;
6468
border-block-width: 0;
6569
background-clip: content-box;
6670

6771
&:hover {
6872
background-color: var(--resizer-hover-bg-color);
73+
border-color: white;
6974
}
7075
&:focus-visible {
7176
background-color: var(--resizer-hover-bg-color);

web/views_manager.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
transition-timing-function: var(--sidebar-transition-timing-function);
190190

191191
.sidebarResizer {
192-
inset-inline-start: 100%;
192+
inset-inline-start: calc(100% + 4px);
193193
}
194194

195195
.viewsManagerButton {

0 commit comments

Comments
 (0)