Skip to content

Commit e658b9b

Browse files
hi-ogawaclaude
andauthored
fix(ui): center split pane resize handle (#11506)
Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1bc2495 commit e658b9b

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎packages/ui/client/styles/main.css‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body {
1010
--color-text-dark: #ddd;
1111
--color-text: var(--color-text-light);
1212
--background-color: #e4e4e4;
13-
--splitpane-handle-size: 5px;
13+
--splitpane-handle-size: 2px;
1414
}
1515

1616
html.dark {
@@ -122,20 +122,18 @@ html.dark {
122122
z-index: 1;
123123
}
124124

125-
.splitpanes__splitter:hover:before {
125+
.splitpanes__splitter:hover:before,
126+
.splitpanes--dragging > .splitpanes__splitter:before {
126127
opacity: 1;
127128
}
128129

129130
.splitpanes--vertical > .splitpanes__splitter:before {
130-
/* make vertical scroll usable */
131-
left: 0;
132-
right: calc(var(--splitpane-handle-size) * -1);
131+
inset-inline: calc(var(--splitpane-handle-size) * -1);
133132
height: 100%;
134133
}
135134

136135
.splitpanes--horizontal > .splitpanes__splitter:before {
137-
top: 0;
138-
bottom: calc(var(--splitpane-handle-size) * -1);
136+
inset-block: calc(var(--splitpane-handle-size) * -1);
139137
width: 100%;
140138
}
141139

0 commit comments

Comments
 (0)