Skip to content

Commit b153daa

Browse files
committed
fix: widen header resize handle
1 parent 1859664 commit b153daa

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

src/dashboard/Data/Views/Views.react.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

src/dashboard/Data/Views/Views.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@
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

0 commit comments

Comments
 (0)