Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ <h1 tabindex="-1">Look up a customer</h1>
<td role="cell" data-label="Customer name">{{ customer.fullName }}</td>
<td role="cell" data-label="Status"><span class="status" [class]="'status status-' + customer.status.toLowerCase()">{{ customer.status }}</span></td>
<td role="cell" class="customer-actions" data-label="Actions">
<a class="table-action" [routerLink]="['/customers', customer.customerId]" data-testid="customer-profile">Profile<span class="visually-hidden"> for {{ customer.fullName }}</span></a>
<a class="table-action" [routerLink]="['/customers', customer.customerId, 'edit']" data-testid="customer-edit">Edit<span class="visually-hidden"> {{ customer.fullName }}</span></a>
<span class="action-links">
<a class="table-action" [routerLink]="['/customers', customer.customerId]" data-testid="customer-profile">Profile<span class="visually-hidden"> for {{ customer.fullName }}</span></a>
<a class="table-action" [routerLink]="['/customers', customer.customerId, 'edit']" data-testid="customer-edit">Edit<span class="visually-hidden"> {{ customer.fullName }}</span></a>
</span>
</td>
</tr>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ th,
td {
padding: 0.9rem 1rem;
border-bottom: 1px solid #e5eaf0;
vertical-align: middle;
}

th {
Expand Down
36 changes: 23 additions & 13 deletions frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ dd {
font: inherit;
}

.customer-actions {
display: flex;
flex-wrap: nowrap;
/* The cell stays a table cell so its row line and height match the other columns.
The links sit in their own inline-flex wrapper instead. */
.customer-actions .action-links {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
}
Expand Down Expand Up @@ -159,11 +161,24 @@ body > canvas {
}
}

/* Three choices sit in one row from tablet up. auto-fit left a 2 + 1 orphan at 768px. */
@media (min-width: 40.01rem) {
.page-card.choices-page .choice-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (max-width: 40rem) {
.page-card .choice-grid .choice-card {
min-height: auto;
}

.profile-actions {
flex-direction: column;
align-items: flex-start;
gap: 0;
}

.page-card > .page-heading,
.page-card > .filters,
.page-card > form.filters {
Expand Down Expand Up @@ -228,6 +243,11 @@ body > canvas {
overflow-wrap: break-word;
}

/* The card's own border closes the last field, so drop its row line. */
.page-card tr td:last-child {
border-bottom: 0;
}

.page-card td .status {
width: fit-content;
max-width: 100%;
Expand All @@ -241,14 +261,4 @@ body > canvas {
letter-spacing: 0.04em;
text-transform: uppercase;
}

.page-card td.customer-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
}

.page-card td.customer-actions::before {
margin-inline-end: auto;
}
}
Loading