From ee37287f9e1440b3472ab64bd828bd54ed7ceec7 Mon Sep 17 00:00:00 2001 From: llara Date: Fri, 14 Feb 2025 10:08:09 +0100 Subject: [PATCH] refs #1477. Refactor repository view styles and structure for improved layout and readability --- .../main-repository-view.component.css | 64 +++++++++---------- .../main-repository-view.component.html | 22 ++++--- .../repository-images.component.css | 14 +--- .../repository-images.component.html | 2 - 4 files changed, 47 insertions(+), 55 deletions(-) diff --git a/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.css b/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.css index 326ce6a..4fa0077 100644 --- a/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.css +++ b/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.css @@ -1,3 +1,16 @@ +.header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 10px; + border-bottom: 1px solid #ddd; +} + +.header-container-title { + flex-grow: 1; + text-align: left; + margin-left: 1em; +} .client-header { display: flex; @@ -36,20 +49,24 @@ .charts-row { display: flex; flex-wrap: wrap; - justify-content: space-between; /* Distribuye el espacio entre los gráficos */ - gap: 20px; /* Añade espacio entre los gráficos */ + justify-content: space-between; + /* Distribuye el espacio entre los gráficos */ + gap: 20px; + /* Añade espacio entre los gráficos */ } .disk-usage { text-align: center; flex: 1; - min-width: 200px; /* Ajusta este valor según el tamaño mínimo deseado para cada gráfico */ + min-width: 200px; + /* Ajusta este valor según el tamaño mínimo deseado para cada gráfico */ } .circular-chart { max-width: 150px; max-height: 150px; - margin: 0 auto; /* Centra el gráfico dentro del contenedor */ + margin: 0 auto; + /* Centra el gráfico dentro del contenedor */ } .chart { @@ -89,7 +106,7 @@ gap: 15px; } -.save-button{ +.save-button { align-self: flex-start; width: 100px !important; margin-top: 20px; @@ -110,7 +127,7 @@ } .mat-elevation-z8 { - box-shadow: 0px 0px 0px rgba(0,0,0,0.2); + box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2); } .table-row { @@ -135,10 +152,6 @@ min-height: 400px; } -.main-container { - margin-top: 15px; -} - .mat-tab-body-wrapper { min-height: inherit; } @@ -170,7 +183,7 @@ } -.disk-usage-info{ +.disk-usage-info { display: flex; justify-content: start; margin-top: 10px; @@ -178,9 +191,7 @@ p { margin-left: 15px; -}.dashboard { - padding: 20px; - } +} .disk-usage-container { display: flex; @@ -190,8 +201,7 @@ p { .header-button-container { display: flex; - justify-content: flex-end; - gap: 10px; + gap: 15px; } .disk-usage { @@ -231,7 +241,8 @@ table { .button-container { display: flex; flex-direction: column; - gap: 10px; /* Espacio entre botones */ + gap: 10px; + /* Espacio entre botones */ margin-top: 50px; } @@ -262,7 +273,7 @@ table { margin-top: 50px; } -.search-container { +.search-container { display: flex; justify-content: space-between; align-items: center; @@ -281,17 +292,8 @@ table { padding: 5px; } -.header-container { - display: flex; - justify-content: space-between; - align-items: center; - height: 100px; - padding: 10px; - margin-top: 16px; -} - .mat-elevation-z8 { - box-shadow: 0px 0px 0px rgba(0,0,0,0.2); + box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2); } .paginator-container { @@ -300,8 +302,7 @@ table { margin-bottom: 30px; } - -.dashboard { +.server-status { padding: 20px; display: flex; flex-direction: column; @@ -381,5 +382,4 @@ table { .top-row .card { max-width: 100%; } -} - +} \ No newline at end of file diff --git a/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.html b/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.html index 62a05fc..d7b0563 100644 --- a/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.html +++ b/ogWebconsole/src/app/components/repositories/main-repository-view/main-repository-view.component.html @@ -1,6 +1,6 @@ - + -
+

OgRepository Server Status

@@ -76,16 +76,18 @@
- -
-
- - +
+
+
+

Editar datos repositorio

+
+
+ + +
-

Editar datos repositorio

-
@@ -113,6 +115,6 @@ - + \ No newline at end of file diff --git a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.css b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.css index af5ea91..5dd3535 100644 --- a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.css +++ b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.css @@ -1,20 +1,11 @@ -.title { - font-size: 24px; -} - .images-button-row { display: flex; justify-content: flex-start; margin-top: 16px; } -.divider { - margin: 20px 0; -} - table { width: 100%; - margin-top: 50px; } .search-container { @@ -22,7 +13,7 @@ table { justify-content: space-between; align-items: center; width: 100%; - padding: 0 5px; + margin: 1.5rem 0rem 1.5rem 0rem; box-sizing: border-box; } @@ -40,7 +31,8 @@ table { display: flex; justify-content: space-between; align-items: center; - padding: 10px; + padding: 10px 10px; + border-bottom: 1px solid #ddd; } .mat-elevation-z8 { diff --git a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.html b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.html index 8347221..3bb5b7b 100644 --- a/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.html +++ b/ogWebconsole/src/app/components/repositories/repository-images/repository-images.component.html @@ -11,8 +11,6 @@
- -
{{ 'searchLabel' | translate }}