Adds comprehensive customers list and management components
Introduces customer-related view components for table and row display Implements mock data loading and customer list rendering Adds localization support for customer-related text Enhances UI with detailed customer information and interactions
This commit is contained in:
parent
cd7acaf490
commit
6ef001e35f
11 changed files with 869 additions and 675 deletions
|
|
@ -18,9 +18,9 @@ swp-card.customers-list {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Table columns: QuickView(40px) | Navn(1fr) | Tlf(120px) | Email(180px) | Besøg(70px) | Sidste(90px) | Frisør(100px) | Oprettet(90px) | Tags(140px) */
|
||||
/* Table columns: Navn(1fr) | Tlf(120px) | Email(180px) | Besøg(70px) | Sidste(90px) | Frisør(100px) | Oprettet(90px) | Tags(140px) */
|
||||
swp-card.customers-list swp-data-table {
|
||||
grid-template-columns: 40px minmax(200px, 1fr) 120px 180px 70px 90px 100px 90px 140px;
|
||||
grid-template-columns: minmax(200px, 1fr) 120px 180px 70px 90px 100px 90px 140px;
|
||||
}
|
||||
|
||||
swp-card.customers-list swp-data-table-header,
|
||||
|
|
@ -41,29 +41,22 @@ swp-card.customers-list swp-data-table-cell {
|
|||
padding: var(--spacing-5) 0;
|
||||
}
|
||||
|
||||
/* Quick-view cell (first column) */
|
||||
/* Name cell with avatar and quick-view button */
|
||||
swp-card.customers-list swp-data-table-cell:first-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-3);
|
||||
}
|
||||
|
||||
/* Name cell with avatar (second column) */
|
||||
swp-card.customers-list swp-data-table-cell:nth-child(2) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
/* Mono font for visits column (fifth column) */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(5) {
|
||||
/* Mono font for visits column */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(4) {
|
||||
font-family: var(--font-mono);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Muted text for email and created columns (4th and 8th) */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(4),
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(8) {
|
||||
/* Muted text for email and created columns */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(3),
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(7) {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue