Skip to content

Commit 625c96e

Browse files
committed
feat(design-system): fix issues [AR-54032]
1 parent 5f60566 commit 625c96e

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

packages/design-system/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
overflow-y: auto;
77
flex: 1;
88
min-height: 0;
9+
scrollbar-gutter: stable;
910

1011
@include scrollbars.scrollbar-on-hover;
1112
}

packages/design-system/src/components/ds-table/ds-table.module.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@ $bulk-actions-reserved-space: 80px;
4141
thead {
4242
display: block;
4343
flex-shrink: 0;
44+
overflow-y: scroll;
45+
scrollbar-gutter: stable;
46+
47+
@include scrollbars.scrollbar-on-hover;
4448
}
4549

4650
tbody {
4751
display: block;
4852
overflow-y: auto;
4953
flex: 1;
5054
min-height: 0;
55+
scrollbar-gutter: stable;
5156

5257
@include scrollbars.scrollbar-on-hover;
5358
}
@@ -87,11 +92,17 @@ $bulk-actions-reserved-space: 80px;
8792
}
8893

8994
.emptyState {
95+
// colSpan in markup isn't honored by flex row layout, so the cell stretches
96+
// across the row; stretch the inner content so it occupies full table width
9097
flex: 1;
9198
min-width: 0;
9299
height: vars.$empty-state-height;
93100
justify-content: center;
94101
text-align: center;
102+
103+
> * {
104+
flex: 1;
105+
}
95106
}
96107

97108
.virtualizedContainer {
@@ -116,11 +127,16 @@ $bulk-actions-reserved-space: 80px;
116127
thead {
117128
display: block;
118129
flex-shrink: 0;
130+
overflow-y: scroll;
131+
scrollbar-gutter: stable;
132+
133+
@include scrollbars.scrollbar-on-hover;
119134
}
120135

121136
tbody {
122137
flex: 1;
123138
min-height: 0;
139+
scrollbar-gutter: stable;
124140
}
125141

126142
thead tr {

0 commit comments

Comments
 (0)