File tree Expand file tree Collapse file tree 2 files changed +42
-12
lines changed Expand file tree Collapse file tree 2 files changed +42
-12
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cube-dev/ui-kit ' : patch
3+ ---
4+
5+ New drag appearance for ResizablePanel to avoid confusion with a scrollbar.
Original file line number Diff line number Diff line change @@ -103,31 +103,48 @@ const HandlerElement = tasty({
103103 } ,
104104
105105 Drag : {
106- hide : {
107- '' : false ,
108- disabled : true ,
106+ display : 'grid' ,
107+ gap : '2bw' ,
108+ flow : {
109+ '' : 'row' ,
110+ horizontal : 'column' ,
111+ } ,
112+ gridColumns : {
113+ '' : '3px 3px 3px 3px 3px' ,
114+ horizontal : 'auto' ,
115+ } ,
116+ gridRows : {
117+ '' : 'auto' ,
118+ horizontal : '3px 3px 3px 3px 3px' ,
109119 } ,
110120 width : {
111- '' : '3x ' ,
121+ '' : 'auto ' ,
112122 horizontal : '3px' ,
113123 } ,
114124 height : {
115125 '' : '3px' ,
116- horizontal : '3x' ,
117- } ,
118- radius : true ,
119- fill : {
120- '' : '#dark-03' ,
121- 'hovered | drag' : '#dark-02' ,
122- disabled : '#dark-04' ,
126+ horizontal : 'auto' ,
123127 } ,
124128 inset : {
125129 '' : '3px 50% auto auto' ,
126130 horizontal : '50% 3px auto auto' ,
127131 } ,
132+ transform : {
133+ '' : 'translate(-50%, 0)' ,
134+ horizontal : 'translate(0, -50%)' ,
135+ } ,
128136 position : 'absolute' ,
129137 transition : 'theme' ,
130138 } ,
139+
140+ DragPart : {
141+ radius : true ,
142+ fill : {
143+ '' : '#dark-03' ,
144+ 'hovered | drag' : '#dark-02' ,
145+ disabled : '#dark-04' ,
146+ } ,
147+ } ,
131148 } ,
132149} ) ;
133150
@@ -156,7 +173,15 @@ const Handler = (props: HandlerProps) => {
156173 ) }
157174 >
158175 < div data-element = "Track" />
159- < div data-element = "Drag" />
176+ { ! isDisabled ? (
177+ < div data-element = "Drag" >
178+ < div data-element = "DragPart" />
179+ < div data-element = "DragPart" />
180+ < div data-element = "DragPart" />
181+ < div data-element = "DragPart" />
182+ < div data-element = "DragPart" />
183+ </ div >
184+ ) : null }
160185 </ HandlerElement >
161186 ) ;
162187} ;
You can’t perform that action at this time.
0 commit comments