Skip to content

Commit ff4c60e

Browse files
committed
merge: restore resize handles and enable panel scrolling
Merges worker/8a16bef9-99f/1772535215319 - Change --cortex-sash-size from 0px to 4px for visible resize handles - Use CSS variable for resize handle dimensions - Change panel content overflow from hidden to auto for scrolling - Update stale comment in scrollbar.css
2 parents 53f5f75 + de45e51 commit ff4c60e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/components/ResizeHandle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ export function ResizeHandle(props: ResizeHandleProps) {
162162
"flex-shrink": "0",
163163
"z-index": "10",
164164
cursor: getCursor(),
165-
// Dimensions based on direction
165+
// Dimensions based on direction - use CSS variable for consistency
166166
...(isHorizontal()
167-
? { width: "4px", height: "100%" }
168-
: { height: "4px", width: "100%" }
167+
? { width: "var(--cortex-sash-size, 4px)", height: "100%" }
168+
: { height: "var(--cortex-sash-size, 4px)", width: "100%" }
169169
),
170170
...props.style,
171171
});

src/layout/containers/Panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function Panel(props: PanelProps) {
365365
<Show when={!isCollapsed()}>
366366
<Box
367367
flex={1}
368-
overflow="hidden"
368+
overflow="auto"
369369
minHeight={0}
370370
>
371371
{props.children}

src/styles/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ code, pre {
243243
--cortex-scrollbar-fade-transition: 800ms;
244244

245245
/* Sash (Resize Handle) Design Tokens - JetBrains Islands Style */
246-
--cortex-sash-size: 0px;
246+
--cortex-sash-size: 4px;
247247
--cortex-sash-hover-size: 4px;
248248
--cortex-sash-hover-border: rgba(99, 102, 241, 0.5);
249249

src/styles/layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
.panel-content {
173173
flex: 1;
174174
min-height: 0;
175-
overflow: hidden;
175+
overflow: auto;
176176
}
177177

178178
.panel-group {

src/styles/scrollbar.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545

4646
/* ---------------------------------------------------------------------
4747
Sash (Resize Handle) Design Tokens - JetBrains Islands Style
48-
Invisible by default, subtle indigo highlight on hover
48+
4px by default, subtle indigo highlight on hover
4949
--------------------------------------------------------------------- */
50-
--cortex-sash-size: 0px;
50+
--cortex-sash-size: 4px;
5151
--cortex-sash-hover-size: 4px;
5252
--cortex-sash-hover-border: rgba(99, 102, 241, 0.5); /* Subtle indigo on hover */
5353

0 commit comments

Comments
 (0)