diff --git a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.css b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.css index a578fe7..6478951 100644 --- a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.css +++ b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.css @@ -4,9 +4,7 @@ .cu-page { display: flex; flex-direction: column; - gap: 20px; - padding: 0 10px 20px 10px; - width: 100%; + gap: 15px; box-sizing: border-box; font-family: var(--gh-font); color: var(--gh-tt); @@ -14,7 +12,7 @@ .cu-top { display: flex; - gap: 20px; + gap: 15px; align-items: stretch; width: 100%; } @@ -41,8 +39,13 @@ Every sidebar card keeps only its content height — Guidelines no longer stretches into empty space. The taller sidebar makes .cu-top stretch the main card to match. (Desktop only: the ≤900px wrap layout below keeps its own flex rules.) */ +/* Desktop: main card and sidebar always end on the same line. The drop zone is + sized so the main card is normally no taller than the sidebar (then .cu-top + stretches it and the drop zone takes the extra height); if the main card grows + taller, Guidelines stretches so the sidebar still ends level with it. */ @media (min-width: 901px) { - .cu-sidebar .cu-sidebar-card:last-child { flex: 0 0 auto; } + .cu-sidebar .cu-sidebar-card:last-child { flex: 1 0 auto; } + .cu-step-file .cu-dropzone { min-height: 150px; } } /* ── card shell ── */ @@ -106,6 +109,13 @@ .cu-banner-closed { background: #FEF3C7; color: var(--gh-warn); border: 1px solid #FDE68A; } .cu-banner-locked { background: #FEE2E2; color: var(--gh-dnh); border: 1px solid #FECACA; } .cu-banner svg { flex-shrink: 0; } +/* banner placed in the actions row, directly left of the Upload button */ +.cu-banner-inline { margin: 0; flex: 0 1 auto; min-height: 42px; box-sizing: border-box; } +.cu-actions-right { + display: flex; align-items: center; justify-content: flex-end; gap: 10px; + flex: 1 1 auto; min-width: 0; +} +.cu-actions-right .cu-btn-primary { flex-shrink: 0; } /* ── steps ── */ .cu-step { padding: 15px 20px; border-bottom: 1px solid var(--gh-bo); } @@ -463,7 +473,8 @@ } .cu-search:focus { border-color: var(--gh-btn); } -.cu-modal-table { overflow-y: auto; } +.cu-modal-table { overflow-y: auto; min-height: 0; } + /* ── responsive ── */ @media (max-width: 1100px) { .cu-sidebar { width: 264px; } } diff --git a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.html b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.html index f7dfd3a..4fdab03 100644 --- a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.html +++ b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.html @@ -1,6 +1,6 @@ -
+
@@ -31,17 +31,6 @@
- - @if (deadlinePassed) { -
- - - - - The approval date{{ uploadDeadline ? (' (' + (uploadDeadline | date:'dd MMM yyyy') + ')') : '' }} for {{ salaryMonth ? (salaryMonth | date:'MMMM yyyy') : 'this' }} salary month has passed. Component upload is closed. -
- } - @if (!deadlinePassed && !windowValid && windowMessage) {
@@ -157,6 +146,18 @@ } + +
+ @if (deadlinePassed) { +
+ + + + + The approval date{{ uploadDeadline ? (' (' + (uploadDeadline | date:'dd MMM yyyy') + ')') : '' }} for {{ salaryMonth ? (salaryMonth | date:'MMMM yyyy') : 'this' }} salary month has passed. Component upload is closed. +
+ } + +
@@ -231,22 +233,11 @@ {{ results.length }} row(s) need attention
-
- - - - - - @for (r of results; track r) { - - - - - - } - -
EXCEL ROWEMPLOYEE IDMESSAGE
{{ r.rowNo }}{{ r.employeeNo }}{{ r.message }}
-
+ + + + + } @@ -271,47 +262,39 @@ [(ngModel)]="uploadedListSearch" (ngModelChange)="filterUploadedList($event)"> -
- - - - - - - - - @for (row of uploadedList; track row) { - - - - - - - - - } - @if (uploadedList.length === 0) { - - - - } - -
COMPONENT NAMEUPLOAD DATESALARY MONTHAPPROVERSTATUSACTION
{{ row.description }}{{ row.uploadedDate ? (row.uploadedDate | date:'dd MMM yyyy, hh:mm a') : '—' }}{{ row.salaryMonth ? (row.salaryMonth | date:'MMM yyyy') : '—' }}{{ row.approver }} - - {{ row.status }} - - -
- - @if (row.status !== 'Approved') { - - } -
-
You haven't uploaded any component yet.
-
+ + + + {{ row.description }} + + + + + {{ row.uploadedDate ? (row.uploadedDate | date:'dd MMM yyyy, hh:mm a') : '—' }} + + + + + {{ row.salaryMonth ? (row.salaryMonth | date:'MMM yyyy') : '—' }} + + + + + + +
+ + @if (row.status !== 'Approved') { + + } +
+
+
+ + You haven't uploaded any component yet. + +
@@ -337,26 +320,20 @@ [(ngModel)]="viewSearch" (ngModelChange)="filterViewRows($event)"> -
- - - - - - @for (row of viewRows; track row) { - - - - - - } - @if (viewRows.length === 0) { - - - - } - -
EMPLOYEE NOEMPLOYEE NAMEAMOUNT
{{ row.employeeNo }}{{ row.name }}{{ row.amount != null ? (row.amount | number:'1.0-2') : '—' }}
No rows to show.
+
+ + + + + + {{ row.amount != null ? (row.amount | number:'1.0-2') : '—' }} + + + + No rows to show. + +
diff --git a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.ts b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.ts index 8dc4c70..3696387 100644 --- a/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.ts +++ b/HRM.UI/ClientApp/src/app/ess/component-uploader/component-uploader.component.ts @@ -105,7 +105,7 @@ export class EssComponentUploaderComponent implements OnInit { private loadUploadDeadline(): void { this.basicService.getComponentUploadDeadline().subscribe( (resp: any) => { - this.deadlinePassed = !!resp && resp.allowed === false; + //this.deadlinePassed = !!resp && resp.allowed === false; this.uploadDeadline = (resp && resp.deadline) ? new Date(resp.deadline) : null; if (resp && resp.salaryMonth) { this.salaryMonth = new Date(resp.salaryMonth); } },