Skip to content

Commit 0cae339

Browse files
committed
fix(table): ensure empty paginatior is never displayed
1 parent 5138469 commit 0cae339

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

src/components/table/partial-styles/_table-main-layout.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,3 @@
3030
flex-shrink: 0;
3131
}
3232
}
33-
34-
#tabulator-container {
35-
&:not(.has-pagination) {
36-
// When there is no pagination, Tabulator still displays the pagination bar,
37-
// but with only 1 page in it. This is why we hide it:
38-
.tabulator-paginator {
39-
visibility: hidden;
40-
display: none !important;
41-
}
42-
}
43-
}

src/components/table/partial-styles/tabulator-custom-styles.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,4 @@
189189
.select-all {
190190
top: functions.pxToRem(42);
191191
}
192-
193-
#tabulator-container {
194-
&:not(.has-pagination) {
195-
.tabulator-paginator {
196-
display: grid !important;
197-
opacity: 0;
198-
}
199-
}
200-
}
201192
}

src/components/table/partial-styles/tabulator-paginator.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
@use '../../../style/mixins';
22
@use '../../../style/functions';
33

4+
#tabulator-container {
5+
&:not(.has-pagination) {
6+
// When there is no pagination, Tabulator still displays the pagination bar,
7+
// but with only 1 page in it. This is why we hide it:
8+
.tabulator-paginator {
9+
display: none !important;
10+
}
11+
}
12+
}
13+
414
.tabulator {
515
.tabulator-footer {
616
.tabulator-paginator {

0 commit comments

Comments
 (0)