File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/components/common/SidePanel Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
useTheme ,
12
12
} from '@devtron-labs/devtron-fe-common-lib'
13
13
14
- import { SIDE_PANEL_MAX_ASIDE_WIDTH , SIDE_PANEL_MIN_ASIDE_WIDTH } from './constants'
14
+ import { SIDE_PANEL_ASIDE_DRAG_HANDLE , SIDE_PANEL_MAX_ASIDE_WIDTH , SIDE_PANEL_MIN_ASIDE_WIDTH } from './constants'
15
15
import { SidePanelDocumentation } from './SidePanelDocumentation'
16
16
import { SidePanelProps } from './types'
17
17
@@ -70,8 +70,8 @@ export const SidePanel = ({ asideWidth }: SidePanelProps) => {
70
70
className = "flexbox"
71
71
>
72
72
< Draggable
73
- handle = ".aside-drag"
74
- defaultClassNameDragging = "aside-drag-- dragging"
73
+ handle = { `. ${ SIDE_PANEL_ASIDE_DRAG_HANDLE } ` }
74
+ defaultClassNameDragging = { ` ${ SIDE_PANEL_ASIDE_DRAG_HANDLE } -- dragging` }
75
75
axis = "none"
76
76
position = { {
77
77
x : 0 ,
@@ -85,7 +85,7 @@ export const SidePanel = ({ asideWidth }: SidePanelProps) => {
85
85
onStart = { handleDragStart }
86
86
onStop = { handleDragStop }
87
87
>
88
- < div className = "aside-drag flex px-5 dc__cursor-col-resize dc__zi-10" >
88
+ < div className = { ` ${ SIDE_PANEL_ASIDE_DRAG_HANDLE } flex px-5 dc__cursor-col-resize dc__zi-10` } >
89
89
< div className = "aside-drag__handle px-1 br-1" />
90
90
</ div >
91
91
</ Draggable >
Original file line number Diff line number Diff line change 1
1
export const SIDE_PANEL_MIN_ASIDE_WIDTH = 362
2
2
3
3
export const SIDE_PANEL_MAX_ASIDE_WIDTH = 525
4
+
5
+ export const SIDE_PANEL_ASIDE_DRAG_HANDLE = 'aside-drag'
You can’t perform that action at this time.
0 commit comments