refs #1373 Refactor styles and filters in groups component.
testing/ogGui-multibranch/pipeline/head This commit looks good Details

pull/12/head
Lucas Lara García 2025-01-23 13:49:43 +01:00
parent 46dd71889d
commit 8d66494458
3 changed files with 10 additions and 40 deletions

View File

@ -3,8 +3,7 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #f5f5f5;
padding: 0px 10px;
border-bottom: 1px solid #ddd;
}
@ -134,7 +133,7 @@ button[mat-raised-button] {
mat-tree {
background-color: #f9f9f9;
padding: 10px;
padding: 0px 10px 10px 10px;
}
mat-tree mat-tree-node {
@ -246,18 +245,14 @@ mat-tree mat-tree-node.disabled:hover {
.filters-container {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 16px;
justify-content: start;
gap: 1rem;
margin: 2rem 0px 0.7rem 10px;
}
.filters-container mat-form-field {
flex: 1 1 100%;
max-width: 300px;
}
.filter-container {
margin-bottom: 16px;
max-width: 250px;
}
.chip-busy {
@ -342,24 +337,17 @@ mat-tree mat-tree-node.disabled:hover {
.tree-container {
width: 25%;
padding: 16px;
overflow-x: hidden;
overflow-y: auto;
}
.clients-container {
width: 75%;
padding: 16px;
padding: 0px 16px 16px 16px;
box-sizing: border-box;
overflow-y: auto;
}
.clients-container h3 {
margin-bottom: 15px;
font-size: 1.5em;
color: #333;
}
.client-item {
display: flex;
justify-content: center;
@ -464,23 +452,10 @@ button[mat-raised-button] {
flex-shrink: 0;
}
.filters-container {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin: 16px 0;
padding: 0 16px;
}
.mat-elevation-z8 {
box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
}
.filters-container mat-form-field {
flex: 1 1 300px;
max-width: 300px;
}
.client-info {
display: flex;
flex-direction: column;

View File

@ -27,14 +27,11 @@
</div>
<!-- Filters Panel -->
<mat-expansion-panel *ngIf="isTreeViewActive" class="filters-panel" joyrideStep="filtersPanelStep" text="{{ 'filtersPanelStepText' | translate }}">
<mat-expansion-panel-header>
<mat-panel-title>{{ 'filters' | translate }}</mat-panel-title>
</mat-expansion-panel-header>
<div class="filters-panel" joyrideStep="filtersPanelStep" text="{{ 'filtersPanelStepText' | translate }}">
<div class="filters-container">
<mat-form-field appearance="outline">
<mat-label>{{ 'searchClient' | translate }}</mat-label>
<input matInput (input)="onClientFilterInput($event)" placeholder="Buscar nombre, IP, estado o MAC">
<input matInput (input)="onClientFilterInput($event)" placeholder="Nombre, IP, estado o MAC">
</mat-form-field>
<mat-form-field appearance="outline">
<mat-select (selectionChange)="loadSelectedFilter($event.value)" placeholder="Cargar filtro" disabled>
@ -57,7 +54,7 @@
</mat-select>
</mat-form-field>
</div>
</mat-expansion-panel>
</div>
<!-- Unit details view-->
<div class="main-container">

View File

@ -55,7 +55,6 @@ export class GroupsComponent implements OnInit, OnDestroy {
cols = 4;
selectedClientsOriginal: Client[] = [];
currentView: 'card' | 'list' = 'list';
isTreeViewActive = false;
savedFilterNames: [string, string][] = [];
selectedTreeFilter = '';
syncStatus = false;
@ -156,7 +155,6 @@ export class GroupsComponent implements OnInit, OnDestroy {
this.selectedUnidad = null;
this.selectedDetail = null;
this.selectedClients.data = [];
this.isTreeViewActive = false;
this.selectedNode = null;
}