Skip to content

Commit 8d93f22

Browse files
committed
119176: Make table horizontally scrollable
For most screen sizes, the ResponsiveTableSizes is enough to resize the table columns. On very small screens, or when zoomed in a lot, even the smallest column sizes are too big. To make it possible to view the rest of the content even in these situations, the ability to scroll horizontally is added.
1 parent 2b1b9d8 commit 8d93f22

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</button>
2828
</div>
2929

30-
<div *ngIf="item && bundles?.length > 0" class="mt-4 table-border">
30+
<div *ngIf="item && bundles?.length > 0" class="mt-4 table-border scrollable-table">
3131
<ds-item-edit-bitstream-bundle *ngFor="let bundle of bundles; first as isFirst"
3232
[bundle]="bundle"
3333
[item]="item"

src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@
3939
:host ::ng-deep .pagination {
4040
padding-top: 0.5rem;
4141
}
42+
43+
.scrollable-table {
44+
overflow-x: auto;
45+
}

0 commit comments

Comments
 (0)