diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index dc3bcef..4b7f5cc 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -70,7 +70,7 @@ function auth_render_bestellungen_large_table(array $bestellungenTable): string $html = []; $html[] = '
'; - $html[] = '
'; + $html[] = '
'; $html[] = '
'; $html[] = '
Bestellungen
'; $html[] = ''; @@ -94,7 +94,8 @@ function auth_render_bestellungen_large_table(array $bestellungenTable): string ? ($sortDirection === 'ASC' ? 'DESC' : 'ASC') : ($column === 'order_date' ? 'DESC' : 'ASC'); - $html[] = '
'; + $amountHeaderClass = $column === 'total_amount' ? ' sg-large-table__cell--amount' : ''; + $html[] = '
'; $html[] = '
'; $html[] = '
' . auth_escape_html($name) . '
'; - $html[] = '
' . auth_escape_html($totalAmount) . '
'; + $html[] = '
' . auth_escape_html($totalAmount) . '
'; $html[] = '
'; } diff --git a/public/assets/styles.css b/public/assets/styles.css index 9c86766..44bb67d 100644 --- a/public/assets/styles.css +++ b/public/assets/styles.css @@ -4263,6 +4263,10 @@ section + section { width: 100%; } +.sg-large-table--bestellungen .sg-large-table__row { + grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(8.5rem, max-content); +} + .sg-large-table__title-segment { flex-direction: row; align-items: center; @@ -4311,6 +4315,10 @@ section + section { white-space: normal; } +.sg-large-table--bestellungen .sg-large-table__cell--amount { + text-align: right; +} + .sg-large-table__load-more-layout { width: 100%; max-width: 100%; @@ -4321,6 +4329,11 @@ section + section { padding: 0; } +.sg-large-table--bestellungen .sg-large-table__cell--amount .sg-large-table__sort-button { + justify-content: flex-end; + text-align: right; +} + .sg-large-table__sort-button { display: flex; align-items: center;