Skip to content

Commit

Permalink
fix(TableContainer): align always visible scrollbar (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Dec 15, 2022
1 parent 71f5ee3 commit c16519d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,11 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
.dnb-spacing .dnb-table__container__head .dnb-h--large:not([class*='space__top']) {
margin: 0; }
.dnb-table__container__foot {
padding: 1rem 1rem 1.5rem; }
padding: 1rem; }
.dnb-table__container__foot--empty {
padding: 0 0 1rem; }
padding: 0 0 0.5rem; }
.dnb-table__container .dnb-table__scroll-view {
margin-bottom: 0.5rem; }
.dnb-modal__content .dnb-table__container .dnb-table__scroll-view {
overflow: visible; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,17 @@
}
}
&__foot {
padding: 1rem 1rem 1.5rem;
padding: 1rem;

&--empty {
padding: 0 0 1rem;
padding: 0 0 0.5rem;
}
}

.dnb-table__scroll-view {
margin-bottom: 0.5rem;
}

// When placed inside a Modal/Drawer, let the parent scroll-bar do its job.
.dnb-modal__content & .dnb-table__scroll-view {
overflow: visible;
Expand Down

0 comments on commit c16519d

Please sign in to comment.