117803: Add negative top-margin to subsequent tables

This commit is contained in:
Andreas Awouters
2024-09-10 16:06:44 +02:00
parent 6a8095d456
commit a230eee76d
3 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@
[bundle]="bundle"
[item]="item"
[columnSizes]="columnSizes"
[hideHeader]="!isFirst"
[isFirstTable]="isFirst"
(dropObject)="dropBitstream(bundle, $event)">
</ds-item-edit-bitstream-bundle>
</div>

View File

@@ -8,9 +8,9 @@
[collectionSize]="bitstreamsList.totalElements">
<ng-container *ngIf="(updates$ | async) as updates">
<table class="table"
<table class="table" [class.mt-n1]="!isFirstTable"
[attr.aria-label]="'item.edit.bitstreams.bundle.table.aria-label' | translate: { bundle: bundleName } ">
<thead [class.visually-hidden]="hideHeader">
<thead [class.visually-hidden]="!isFirstTable">
<tr class="header-row font-weight-bold">
<th id="name" scope="col" class="{{ columnSizes.columns[0].buildClasses() }}">
{{'item.edit.bitstreams.headers.name' | translate}}

View File

@@ -99,9 +99,9 @@ export class ItemEditBitstreamBundleComponent implements OnInit {
@Input() columnSizes: ResponsiveTableSizes;
/**
* Whether to hide the table headers
* Whether this is the first in a series of bundle tables
*/
@Input() hideHeader = false;
@Input() isFirstTable = false;
/**
* Send an event when the user drops an object on the pagination