@@ -16,7 +16,6 @@ const ModuleHeader = styled.div<{ $isDragging?: boolean }>`
16
16
border-radius: ${ radius . lg } ${ radius . lg } 0 0;
17
17
padding: ${ spacing . md } ${ spacing . md } ${ spacing . xsm } ${ spacing . md } ;
18
18
border-bottom: ${ borders [ '1px' ] } ${ colors . white } ;
19
- cursor: ${ ( { $isDragging } ) => ( $isDragging ? 'grabbing' : 'grab' ) } ;
20
19
user-select: none;
21
20
22
21
/* Optimize for smooth dragging */
@@ -38,6 +37,11 @@ const ModuleHeader = styled.div<{ $isDragging?: boolean }>`
38
37
` }
39
38
` ;
40
39
40
+ const DragHandle = styled . div < { $isDragging ?: boolean } > `
41
+ cursor: ${ ( { $isDragging } ) => ( $isDragging ? 'grabbing' : 'grab' ) } ;
42
+ flex: 1;
43
+ ` ;
44
+
41
45
const FloatingRightHeaderSection = styled . div `
42
46
position: absolute;
43
47
display: flex;
@@ -86,15 +90,18 @@ function LargeModule({ children, module, position, loading, onClickViewAll }: Re
86
90
return (
87
91
< ModuleContainer
88
92
$height = "316px"
93
+ ref = { setNodeRef }
89
94
style = { {
90
95
opacity : isDragging ? 0.5 : 1 ,
91
96
transition : 'opacity 0.2s ease' ,
92
97
} }
93
98
>
94
- < ModuleHeader ref = { setNodeRef } { ...listeners } { ...attributes } $isDragging = { isDragging } >
95
- < ModuleName text = { name } />
96
- { /* TODO: implement description for modules CH-548 */ }
97
- { /* <ModuleDescription text={description} /> */ }
99
+ < ModuleHeader $isDragging = { isDragging } >
100
+ < DragHandle { ...listeners } { ...attributes } $isDragging = { isDragging } >
101
+ < ModuleName text = { name } />
102
+ { /* TODO: implement description for modules CH-548 */ }
103
+ { /* <ModuleDescription text={description} /> */ }
104
+ </ DragHandle >
98
105
< FloatingRightHeaderSection >
99
106
< ModuleMenu module = { module } position = { position } />
100
107
</ FloatingRightHeaderSection >
0 commit comments