From 411dc3a8e6eabe4d711132b14db6fbd7945bebed Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Tue, 22 Sep 2020 20:18:41 +0200 Subject: [PATCH] Improve table layout --- .../pages/tables/bikes/bikes.component.html | 159 ++++++++++-------- .../pages/tables/bikes/bikes.component.scss | 43 ++--- 2 files changed, 109 insertions(+), 93 deletions(-) diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index 5c2fc6c..d407035 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -1,85 +1,96 @@ -
- - -
-
- - - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - + - + {{ element.security.frameNumber }} + + - - - - - + + + + + - - - - - + + + + + - - - -
- - - - - - + + + + + + Name - {{ element.name }} - Name + {{ element.name }} + ID{{ element.id }}ID{{ element.id }}Fahrgestellnummer - + + Fahrgestellnummer + - {{ element.security.frameNumber }} - Anzahl Kinder{{ element.numberOfChildren }}Anzahl Kinder + {{ element.numberOfChildren }} + - more_vert - +
+ + +
+
+ + + + +
diff --git a/src/app/pages/tables/bikes/bikes.component.scss b/src/app/pages/tables/bikes/bikes.component.scss index 0c8228e..e4dddb5 100644 --- a/src/app/pages/tables/bikes/bikes.component.scss +++ b/src/app/pages/tables/bikes/bikes.component.scss @@ -1,24 +1,29 @@ -.table-control { - margin: 0.5em; -} -#table-container { - width: 100%; - max-width: 100%; - overflow: auto; - table { +.table-page-wrapper { + display: flex; + flex-direction: column; + height: 100%; + .table-control { + margin: 0.5em; + flex: none; + } + .table-container { + flex: 1; width: 100%; - th.mat-column-name, - td.mat-column-name { - padding-left: 8px; - } - - .mat-table-sticky:first-child { - border-right: 1px solid #ffffff1f; - padding-right: 1em; - } + max-width: 100%; + overflow: auto; + table { + width: 100%; + .mat-header-cell, + .mat-footer-cell, + .mat-cell { + min-width: 80px; + box-sizing: border-box; + } - .mat-table-sticky:last-child { - border-left: 1px solid #ffffff1f; + .button-wrapper { + display: flex; + flex-direction: row; + } } } }