File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
base/browser/ui/positronComponents/splitters
workbench/browser/positronDataExplorer/components/dataExplorerPanel/components Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ type VerticalSplitterCollapseProps = | {
44
44
readonly collapsible ?: false ;
45
45
readonly isCollapsed ?: never ;
46
46
readonly onCollapsedChanged ?: never ;
47
+ readonly alwaysShowExpandCollapseButton ?: never ;
47
48
} | {
48
49
readonly collapsible : true ;
49
50
readonly isCollapsed : boolean ;
50
51
readonly onCollapsedChanged : ( collapsed : boolean ) => void ;
52
+ readonly alwaysShowExpandCollapseButton ?: boolean ;
51
53
} ;
52
54
53
55
/**
@@ -80,6 +82,7 @@ const getSashSize = (configurationService: IConfigurationService) =>
80
82
const getHoverDelay = ( configurationService : IConfigurationService ) =>
81
83
configurationService . getValue < number > ( 'workbench.sash.hoverDelay' ) ;
82
84
85
+
83
86
/**
84
87
* Determines whether a point is inside an element.
85
88
* @param x The X coordinate.
@@ -136,6 +139,7 @@ export const VerticalSplitter = ({
136
139
showSash,
137
140
collapsible,
138
141
isCollapsed,
142
+ alwaysShowExpandCollapseButton,
139
143
onCollapsedChanged,
140
144
onBeginResize,
141
145
onResize,
@@ -412,7 +416,7 @@ export const VerticalSplitter = ({
412
416
/>
413
417
}
414
418
</ div >
415
- { collapsible && ( hovering || resizing || collapsed ) &&
419
+ { collapsible && ( alwaysShowExpandCollapseButton || hovering || resizing || collapsed ) &&
416
420
< Button
417
421
ref = { expandCollapseButtonRef }
418
422
className = 'expand-collapse-button'
Original file line number Diff line number Diff line change @@ -360,6 +360,7 @@ export const DataExplorer = () => {
360
360
}
361
361
< div ref = { splitterRef } className = 'splitter' >
362
362
< VerticalSplitter
363
+ alwaysShowExpandCollapseButton = { true }
363
364
collapsible = { true }
364
365
invert = { layout === PositronDataExplorerLayout . SummaryOnRight }
365
366
isCollapsed = { columnsCollapsed }
You can’t perform that action at this time.
0 commit comments