From 858db45e0da84e05a09792fa0170f5415e62043f Mon Sep 17 00:00:00 2001 From: llara Date: Mon, 3 Mar 2025 11:53:20 +0100 Subject: [PATCH] refs #1619. Style: enhance cards view layout and paginator integration in groups component --- .../components/groups/groups.component.css | 30 ++++- .../components/groups/groups.component.html | 106 +++++++++--------- 2 files changed, 82 insertions(+), 54 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index e9499bd..9858f90 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -59,10 +59,20 @@ } .cards-view { + max-height: calc(100vh - 330px); + overflow: auto; display: flex; + flex-direction: row; flex-grow: 1; - overflow-y: auto; - width: 100%; + overflow: auto; +} + +.cards-select-all { + position: sticky; + top: 0; + z-index: 1; + padding-top: 0.5rem; + padding-left: 1rem; } .clients-table { @@ -83,6 +93,17 @@ margin-top: auto; } +.cards-paginator { + width: 100%; + margin-left: 1rem; + background-color: #fafafa; +} + +.list-paginator { + width: 100%; + background-color: #f3f3f3; +} + .actions mat-icon { color: #757575; cursor: pointer; @@ -293,7 +314,6 @@ mat-tree mat-tree-node.disabled:hover { position: relative; } - .client-card:hover { transform: translateY(-5px); box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); @@ -348,6 +368,8 @@ mat-tree mat-tree-node.disabled:hover { .clients-view-header { display: flex; flex-direction: column; + margin-bottom: 1rem; + margin-top: 0; } } @@ -422,7 +444,7 @@ mat-button-toggle-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; - padding: 8px 20px 20px 20px; + padding: 0.5rem 1rem 1rem 1rem; width: 100%; box-sizing: border-box; } \ No newline at end of file diff --git a/ogWebconsole/src/app/components/groups/groups.component.html b/ogWebconsole/src/app/components/groups/groups.component.html index 6be6dc2..694f3fd 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -202,62 +202,68 @@
-
- - -
-
-
- - - Client Icon +
+
+ + +
+
+
+ + + Client Icon -
- {{ client.name }} - {{ client.ip }} - {{ client.mac }} -
- - - - - - - - - - - - - + + + + + + +
+
+
+ +
@@ -354,11 +360,11 @@ - + -