diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 7449a13..9f05ec3 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -22,6 +22,85 @@ overflow: hidden; } +.clients-mat-divider { + display: none; +} + +@media (max-width: 992px) { + .main-container { + display: flex !important; + flex-direction: column !important; + width: 100% !important; + height: 100% !important; + overflow: hidden !important; + } + + .filters-and-tree-container { + display: flex !important; + flex-direction: row !important; + flex-grow: 1 !important; + flex-shrink: 1 !important; + width: 100% !important; + max-width: none !important; + min-width: 0 !important; + padding: 1rem !important; + box-sizing: border-box !important; + min-height: 250px !important; + overflow-y: auto !important; + } + + .filters-panel, + .tree-container { + flex: 1 1 50% !important; + overflow-y: auto !important; + padding: 0.5rem !important; + box-sizing: border-box !important; + margin-bottom: 0 !important; + } + + .filters-container { + padding: 0 !important; + } + + .tree-mat-divider { + display: none !important; + } + + .clients-mat-divider { + display: inline; + } + + .clients-view-header { + display: flex; + flex-direction: row !important; + justify-content: space-between !important; + margin-bottom: 0.5rem !important; + margin-top: 0.5rem !important; + align-items: center !important; + padding-right: 1rem !important; + } + + .groups-button-row { + display: none !important; + } + + .cards-view { + max-height: none !important; + } +} + +@media (max-width: 1400px) { + .type-view-text { + display: none; + } +} + +@media (max-width: 450px) { + .clients-title-name { + font-size: 20px !important; + } +} + .header-container-title { flex-grow: 1; text-align: left; @@ -34,15 +113,6 @@ padding-right: 0.5rem; } -.clients-container { - flex-grow: 1; - box-sizing: border-box; - overflow: hidden; - display: flex; - flex-direction: column; - padding: 0rem 1rem 0rem 0.5rem; -} - .clients-view-header { display: flex; flex-direction: row; @@ -53,6 +123,32 @@ padding-right: 1rem; } +@media (max-width: 768px) { + .clients-view-header { + display: flex; + flex-direction: column !important; + } +} + +.clients-title-name { + font-size: x-large; + display: block; + padding: 1rem 1rem 1rem 13px; + margin-left: 0.6rem; + flex: 1 1 auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.view-type-container { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + align-items: center; + flex-shrink: 0; +} + .clients-view { flex-grow: 1; overflow-y: auto; @@ -124,18 +220,6 @@ flex: 1; } -@media (max-width: 1024px) { - .header-container { - flex-direction: column; - gap: 10px; - } - - .groups-button-row { - flex-wrap: wrap; - gap: 10px; - } -} - mat-tree { background-color: #f9f9f9; padding: 0px 10px 10px 10px; @@ -265,21 +349,36 @@ mat-tree mat-tree-node.disabled:hover { padding-right: 1rem; } -.filters-container { +.clients-container { + flex: 8; + box-sizing: border-box; + overflow: hidden; display: flex; flex-direction: column; - justify-content: start; - padding: 1em 1em 0em 1em; -} - -.filter-form-field { - min-width: 21rem; + padding: 0rem 1rem 0rem 0.5rem; } .filters-and-tree-container { + flex: 2; display: flex; flex-direction: column; - height: 100%; + flex-shrink: 1; + width: 100%; + box-sizing: border-box; +} + +.filters-container { + display: flex; + flex-direction: column; + padding: 1em; + flex-grow: 1; +} + +.filter-form-field { + flex: 1; + min-width: 150px; + max-width: 100%; + box-sizing: border-box; } .filters-panel { @@ -327,6 +426,10 @@ mat-tree mat-tree-node.disabled:hover { margin-top: 4px; } +.type-view-text { + margin-left: 0.5vw; +} + .action-icons { display: flex; justify-content: center; @@ -373,22 +476,6 @@ mat-tree mat-tree-node.disabled:hover { position: relative; } -@media (max-width: 1560px) { - .clients-view-header { - display: flex; - flex-direction: column; - margin-bottom: 1rem; - margin-top: 0; - } -} - -.clients-title-name { - font-size: x-large; - display: block; - padding: 1rem 1rem 1rem 13px; - margin-left: 0.6rem; -} - .no-clients-info { display: flex; align-items: center; @@ -397,13 +484,6 @@ mat-tree mat-tree-node.disabled:hover { margin-left: 1.6rem; } -.view-type-container { - display: flex; - justify-content: flex-end; - gap: 2rem; - align-items: center; -} - mat-button-toggle-group { border: none; } @@ -456,5 +536,4 @@ mat-button-toggle-group { 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 aeabcb1..32bac8a 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -25,6 +25,27 @@ {{ 'legendButton' | translate }} + + +