Skip to content

Commit 7d122ca

Browse files
fix(ui): add background boxes for better layout
fix(ui): add background boxes for better layout--
1 parent 253bd7d commit 7d122ca

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

src/app/accounting/search-journal-entry/search-journal-entry.component.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container layout-row-wrap gap-2px responsive-column">
1+
<div class="container layout-row-wrap gap-2px responsive-column filter-container">
22
<mat-form-field class="flex-31">
33
<mat-label>{{ 'labels.inputs.Office Name' | translate }}</mat-label>
44
<input matInput [formControl]="officeName" [matAutocomplete]="officeNameAutocomplete" />
@@ -85,13 +85,12 @@
8585
</mat-option>
8686
</mat-autocomplete>
8787

88-
<div class="mat-elevation-z8 container">
88+
<div class="mat-elevation-z8 container table-container">
8989
<table mat-table [dataSource]="dataSource" matSort>
9090
<ng-container matColumnDef="id">
9191
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Entry ID' | translate }}</th>
9292
<td mat-cell *matCellDef="let journalEntry">{{ journalEntry.id }}</td>
9393
</ng-container>
94-
9594
<ng-container matColumnDef="officeName">
9695
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Office' | translate }}</th>
9796
<td mat-cell *matCellDef="let journalEntry">{{ journalEntry.officeName }}</td>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
11
table {
22
width: 100%;
3+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
4+
border: 1px solid var(--border-color, #ddd);
5+
border-radius: 8px;
6+
transition:
7+
background-color 0.3s ease,
8+
border-color 0.3s ease;
39

410
.select-row:hover {
511
cursor: pointer;
612
}
713
}
14+
15+
.filter-container {
16+
margin-bottom: 1rem;
17+
padding: 1.5rem;
18+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
19+
border: 1px solid var(--border-color, #ddd);
20+
border-radius: 8px;
21+
transition:
22+
background-color 0.3s ease,
23+
border-color 0.3s ease;
24+
}
25+
26+
.table-container {
27+
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
28+
border: 1px solid var(--border-color, #ddd);
29+
border-radius: 8px;
30+
transition:
31+
background-color 0.3s ease,
32+
border-color 0.3s ease;
33+
}

0 commit comments

Comments
 (0)