From 1962beaf8a4ebbbe3a11dcd219d284753d0b3730 Mon Sep 17 00:00:00 2001 From: llara Date: Wed, 26 Feb 2025 09:34:29 +0100 Subject: [PATCH] refs #1608 and #1561 Fix selection in both views. Add multi-selection in cards view. --- .../execute-command.component.html | 18 ++-- .../execute-command.component.ts | 1 + .../components/groups/groups.component.css | 42 ++++---- .../components/groups/groups.component.html | 100 ++++++++++-------- .../app/components/groups/groups.component.ts | 35 ++++-- 5 files changed, 109 insertions(+), 87 deletions(-) diff --git a/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.html b/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.html index 11353a8..1d6eb62 100644 --- a/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.html +++ b/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.html @@ -1,20 +1,18 @@ - - - - - + \ No newline at end of file diff --git a/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.ts b/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.ts index bc7dd55..72a5f59 100644 --- a/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.ts +++ b/ogWebconsole/src/app/components/commands/main-commands/execute-command/execute-command.component.ts @@ -15,6 +15,7 @@ export class ExecuteCommandComponent implements OnInit { @Input() buttonType: 'icon' | 'text' = 'icon'; @Input() buttonText: string = 'Ejecutar Comandos'; @Input() icon: string = 'terminal'; + @Input() disabled: boolean = false; baseUrl: string = import.meta.env.NG_APP_BASE_API_URL; loading: boolean = true; diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 97a7e90..dc010f8 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -328,12 +328,6 @@ mat-tree mat-tree-node.disabled:hover { overflow-y: auto; } -.clients-container { - width: 75%; - box-sizing: border-box; - overflow-y: auto; -} - .client-item { display: flex; justify-content: center; @@ -378,13 +372,6 @@ mat-tree mat-tree-node.disabled:hover { color: #666; } -.clients-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); - gap: 4px; - /* Espaciado reducido entre cards */ -} - .clients-list { display: flex; flex-direction: column; @@ -405,15 +392,6 @@ mat-tree mat-tree-node.disabled:hover { flex-direction: column; } -.clients-grid { - display: grid; - grid-template-columns: repeat(6, 1fr); - /* 6 columnas por fila */ - gap: 16px; - /* Espaciado entre tarjetas */ - padding: 20px; -} - .clients-list .list-item-content { display: flex; justify-content: space-between; @@ -568,4 +546,24 @@ mat-button-toggle-group { .mat-button-toggle-group .mat-button-toggle.mat-button-toggle-disabled { background-color: #c7c7c7; +} + +.clients-container { + width: 75%; + box-sizing: border-box; + overflow-y: auto; +} + +.cards-view { + display: flex; + width: 100%; +} + +.clients-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); + gap: 16px; + padding: 8px 20px 20px 20px; + 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 6a7420d..64592af 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -171,8 +171,8 @@
- + @@ -190,55 +190,63 @@
-
-
-
- - - Client Icon +
+ + +
+
+
+ + + Client Icon -
- {{ client.name }} - {{ client.ip }} - {{ client.mac }} -
- - - - - - - - - - - - - + + + + + + +
+
@@ -314,11 +322,13 @@
{{ 'actions' | translate }} - - +