refs #1477. Refactor repository view styles and structure for improved layout and readability
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/16/head
Lucas Lara García 2025-02-14 10:08:09 +01:00
parent 3c9458d15a
commit ee37287f9e
4 changed files with 47 additions and 55 deletions

View File

@ -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 { .client-header {
display: flex; display: flex;
@ -36,20 +49,24 @@
.charts-row { .charts-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; /* Distribuye el espacio entre los gráficos */ justify-content: space-between;
gap: 20px; /* Añade espacio entre los gráficos */ /* Distribuye el espacio entre los gráficos */
gap: 20px;
/* Añade espacio entre los gráficos */
} }
.disk-usage { .disk-usage {
text-align: center; text-align: center;
flex: 1; 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 { .circular-chart {
max-width: 150px; max-width: 150px;
max-height: 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 { .chart {
@ -89,7 +106,7 @@
gap: 15px; gap: 15px;
} }
.save-button{ .save-button {
align-self: flex-start; align-self: flex-start;
width: 100px !important; width: 100px !important;
margin-top: 20px; margin-top: 20px;
@ -110,7 +127,7 @@
} }
.mat-elevation-z8 { .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 { .table-row {
@ -135,10 +152,6 @@
min-height: 400px; min-height: 400px;
} }
.main-container {
margin-top: 15px;
}
.mat-tab-body-wrapper { .mat-tab-body-wrapper {
min-height: inherit; min-height: inherit;
} }
@ -170,7 +183,7 @@
} }
.disk-usage-info{ .disk-usage-info {
display: flex; display: flex;
justify-content: start; justify-content: start;
margin-top: 10px; margin-top: 10px;
@ -178,9 +191,7 @@
p { p {
margin-left: 15px; margin-left: 15px;
}.dashboard { }
padding: 20px;
}
.disk-usage-container { .disk-usage-container {
display: flex; display: flex;
@ -190,8 +201,7 @@ p {
.header-button-container { .header-button-container {
display: flex; display: flex;
justify-content: flex-end; gap: 15px;
gap: 10px;
} }
.disk-usage { .disk-usage {
@ -231,7 +241,8 @@ table {
.button-container { .button-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; /* Espacio entre botones */ gap: 10px;
/* Espacio entre botones */
margin-top: 50px; margin-top: 50px;
} }
@ -262,7 +273,7 @@ table {
margin-top: 50px; margin-top: 50px;
} }
.search-container { .search-container {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -281,17 +292,8 @@ table {
padding: 5px; padding: 5px;
} }
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 100px;
padding: 10px;
margin-top: 16px;
}
.mat-elevation-z8 { .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 { .paginator-container {
@ -300,8 +302,7 @@ table {
margin-bottom: 30px; margin-bottom: 30px;
} }
.server-status {
.dashboard {
padding: 20px; padding: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -382,4 +383,3 @@ table {
max-width: 100%; max-width: 100%;
} }
} }

View File

@ -1,6 +1,6 @@
<mat-tab-group class="main-container" dynamicHeight> <mat-tab-group dynamicHeight>
<mat-tab label="Estado servidor"> <mat-tab label="Estado servidor">
<div class="dashboard"> <div class="server-status">
<h2>OgRepository Server Status</h2> <h2>OgRepository Server Status</h2>
<div class="row top-row"> <div class="row top-row">
@ -76,16 +76,18 @@
</div> </div>
</mat-tab> </mat-tab>
<mat-tab label="Datos generales"> <mat-tab label="Datos generales">
<div class="dashboard"> <div class="general-data">
<div class="header-button-container"> <div class="header-container">
<button mat-flat-button color="primary" (click)="syncRepository()">Sincronizar base de datos</button> <div class="header-container-title">
<button mat-flat-button color="accent" (click)="openImageInfoDialog()">Ver Información</button> <h2>Editar datos repositorio</h2>
</div>
<div class="header-button-container">
<button mat-flat-button color="primary" (click)="syncRepository()">Sincronizar base de datos</button>
<button mat-flat-button color="accent" (click)="openImageInfoDialog()">Ver Información</button>
</div>
</div> </div>
<h2>Editar datos repositorio</h2>
<app-loading [isLoading]="loading"></app-loading> <app-loading [isLoading]="loading"></app-loading>
<div *ngIf="!loading" class="client-info form-container"> <div *ngIf="!loading" class="client-info form-container">
@ -113,6 +115,6 @@
</mat-tab> </mat-tab>
<mat-tab label="Listado de imágenes"> <mat-tab label="Listado de imágenes">
<app-repository-images [repositoryUuid] ="repositoryId"></app-repository-images> <app-repository-images [repositoryUuid]="repositoryId"></app-repository-images>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>

View File

@ -1,20 +1,11 @@
.title {
font-size: 24px;
}
.images-button-row { .images-button-row {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
margin-top: 16px; margin-top: 16px;
} }
.divider {
margin: 20px 0;
}
table { table {
width: 100%; width: 100%;
margin-top: 50px;
} }
.search-container { .search-container {
@ -22,7 +13,7 @@ table {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%; width: 100%;
padding: 0 5px; margin: 1.5rem 0rem 1.5rem 0rem;
box-sizing: border-box; box-sizing: border-box;
} }
@ -40,7 +31,8 @@ table {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 10px; padding: 10px 10px;
border-bottom: 1px solid #ddd;
} }
.mat-elevation-z8 { .mat-elevation-z8 {

View File

@ -11,8 +11,6 @@
</div> </div>
</div> </div>
<mat-divider class="divider"></mat-divider>
<div class="search-container"> <div class="search-container">
<mat-form-field appearance="fill" class="search-string" joyrideStep="searchImagesField" text="Busca una imagen por nombre. Pulsa 'enter' para iniciar la búsqueda."> <mat-form-field appearance="fill" class="search-string" joyrideStep="searchImagesField" text="Busca una imagen por nombre. Pulsa 'enter' para iniciar la búsqueda.">
<mat-label>{{ 'searchLabel' | translate }}</mat-label> <mat-label>{{ 'searchLabel' | translate }}</mat-label>