Skip to content

Commit f883e7c

Browse files
fix(Table): resize handle now has correct vertical alignment in all table layout modes
ISSUES CLOSED: #1991
1 parent 562b12e commit f883e7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

terminus-ui/table/src/table.component.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
--cell-padding: #{spacing(default)};
2727
// Must be greater than 40 as that is the length of the generated z-indexes for header cells
2828
--sticky-end-z: 50;
29+
--grip-vertical-adjustment: 50%;
2930
@include reset;
3031
@include typography;
3132
border-collapse: separate;
@@ -36,6 +37,7 @@
3637

3738
&.ts-table--compact {
3839
--cell-padding: #{spacing(small, 2)};
40+
--grip-vertical-adjustment: calc(50% - 4px);
3941
}
4042

4143
// Class added to all sticky-end cells
@@ -219,7 +221,7 @@
219221
// Visible container for grabber
220222
&::before {
221223
background-color: color(primary);
222-
bottom: 0;
224+
bottom: 1px;
223225
content: '';
224226
display: block;
225227
left: 50%;
@@ -241,7 +243,7 @@
241243
left: 50%;
242244
position: absolute;
243245
top: 30%;
244-
transform: rotate(90deg) translate(50%, -3px);
246+
transform: rotate(90deg) translate(var(--grip-vertical-adjustment), -3px);
245247
z-index: var(--z-index-resize-grabber);
246248
}
247249
}

0 commit comments

Comments
 (0)