File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -340,10 +340,15 @@ class Views extends TableView {
340340
341341 renderHeaders ( ) {
342342 return this . state . order . map ( ( { name, width } , i ) => (
343- < div key = { name } className = { styles . headerWrap } style = { { width } } >
344- { name }
345- < DragHandle className = { styles . handle } onDrag = { delta => this . handleResize ( i , delta ) } />
346- </ div >
343+ < React . Fragment key = { name } >
344+ < div className = { styles . headerWrap } style = { { width } } >
345+ < span className = { styles . headerLabel } > { name } </ span >
346+ </ div >
347+ < DragHandle
348+ className = { styles . handle }
349+ onDrag = { delta => this . handleResize ( i , delta ) }
350+ />
351+ </ React . Fragment >
347352 ) ) ;
348353 }
349354
Original file line number Diff line number Diff line change 1515 position : relative ;
1616 white-space : nowrap ;
1717 overflow : hidden ;
18+ }
19+
20+ .headerLabel {
21+ display : inline-block ;
22+ max-width : 100% ;
23+ overflow : hidden ;
1824 text-overflow : ellipsis ;
1925}
2026
2127.handle {
22- position : absolute ;
23- top : 0 ;
24- right : -4px ;
28+ position : relative ;
29+ display : inline-block ;
2530 width : 8px ;
2631 height : 30px ;
32+ margin : 0 -4px ;
2733 cursor : ew-resize ;
2834}
2935
You can’t perform that action at this time.
0 commit comments