chore(ui): normalise text size and spacing (#1656)

This commit is contained in:
Alex
2026-06-07 08:46:25 +01:00
committed by GitHub
parent 2675c4a04a
commit 349f046062
180 changed files with 4555 additions and 4466 deletions
@@ -146,7 +146,7 @@
</div>
@if (oidcEnabled) {
<div class="config-grid" style="margin-top: 0.75rem;">
<div class="config-grid" style="margin-top: 0.6563rem;">
<div class="config-item">
<label for="sessionDuration">{{ t('providerConfig.sessionDuration') }}</label>
<p-inputNumber
@@ -376,8 +376,8 @@
{{ t('oidcOnly.description') }}
</p>
@if (oidcForceOnlyMode) {
<p class="toggle-description" style="color: var(--p-yellow-500); margin-top: 0.5rem;">
<i class="pi pi-exclamation-triangle" style="margin-right: 0.25rem;"></i>
<p class="toggle-description" style="color: var(--p-yellow-500); margin-top: 0.4375rem;">
<i class="pi pi-exclamation-triangle" style="margin-right: 0.2188rem;"></i>
{{ t('oidcOnly.backdoorHint') }}
</p>
}
@@ -437,8 +437,8 @@
{{ t('provisioning.linkLocalDesc') }}
</p>
@if (allowLocalAccountLinking) {
<p class="toggle-description" style="color: var(--p-yellow-500); margin-top: 0.5rem;">
<i class="pi pi-exclamation-triangle" style="margin-right: 0.25rem;"></i>
<p class="toggle-description" style="color: var(--p-yellow-500); margin-top: 0.4375rem;">
<i class="pi pi-exclamation-triangle" style="margin-right: 0.2188rem;"></i>
{{ t('provisioning.linkLocalWarning') }}
</p>
}
@@ -481,7 +481,7 @@
<div class="libraries-group">
<h4 class="group-title">{{ t('provisioning.defaultLibraryAccess') }}</h4>
<div style="display: flex; align-items: center; gap: 0.5rem; justify-content: space-between;">
<div style="display: flex; align-items: center; gap: 0.4375rem; justify-content: space-between;">
<p-multiSelect
[options]="allLibraries"
optionLabel="name"
@@ -532,7 +532,7 @@
</div>
<div class="section-body">
<div class="config-grid-2col" style="margin-bottom: 1rem;">
<div class="config-grid-2col" style="margin-bottom: 0.875rem;">
<div class="config-item">
<label for="groupSyncMode">{{ t('groupMapping.syncModeLabel') }}</label>
<p-select
@@ -566,7 +566,7 @@
<th>{{ t('groupMapping.colPermissions') }}</th>
<th>{{ t('groupMapping.colLibraries') }}</th>
<th>{{ t('groupMapping.colDescription') }}</th>
<th style="width: 8rem;"></th>
<th style="width: 7rem;"></th>
</tr>
</ng-template>
<ng-template #body let-mapping>
@@ -579,17 +579,17 @@
</td>
<td>
@for (perm of mapping.permissions; track perm) {
<app-tag [rounded]="true" color="info" size="2xs" style="margin-right: 0.25rem; margin-bottom: 0.25rem;">{{ perm }}</app-tag>
<app-tag [rounded]="true" color="info" size="2xs" style="margin-right: 0.2188rem; margin-bottom: 0.2188rem;">{{ perm }}</app-tag>
}
</td>
<td>
@for (libId of mapping.libraryIds; track libId) {
<app-tag [rounded]="true" color="secondary" size="2xs" style="margin-right: 0.25rem; margin-bottom: 0.25rem;">{{ getLibraryName(libId) }}</app-tag>
<app-tag [rounded]="true" color="secondary" size="2xs" style="margin-right: 0.2188rem; margin-bottom: 0.2188rem;">{{ getLibraryName(libId) }}</app-tag>
}
</td>
<td>{{ mapping.description }}</td>
<td>
<div style="display: flex; gap: 0.5rem;">
<div style="display: flex; gap: 0.4375rem;">
<p-button icon="pi pi-pencil" [rounded]="true" [text]="true" severity="info" size="small" (click)="openEditGroupMapping(mapping)"></p-button>
<p-button icon="pi pi-trash" [rounded]="true" [text]="true" severity="danger" size="small" (click)="deleteGroupMapping(mapping)"></p-button>
</div>
@@ -607,7 +607,7 @@
[modal]="true"
[style]="{width: '550px', maxWidth: '95vw'}"
[dismissableMask]="true">
<div class="config-grid" style="gap: 1rem;">
<div class="config-grid" style="gap: 0.875rem;">
<div class="config-item full-width">
<label for="gmGroupClaim">{{ t('groupMapping.groupClaimLabel') }}</label>
<input pInputText id="gmGroupClaim" [(ngModel)]="editingGroupMapping.oidcGroupClaim" [placeholder]="t('groupMapping.groupClaimPlaceholder')"/>
@@ -9,7 +9,7 @@
.settings-title {
@include settings.settings-page-title;
margin-bottom: 0.75rem;
margin-bottom: 0.6563rem;
}
.settings-description {
@@ -28,7 +28,7 @@
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
gap: 0.875rem;
@media (width <= 767px) {
flex-direction: column;
@@ -60,20 +60,20 @@
.auth-methods-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.auth-method-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
gap: 0.875rem;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-left-width: 3px;
border-left-style: solid;
border-radius: 6px;
padding: 1rem;
padding: 0.875rem;
transition: border-color 0.2s ease, background 0.2s ease;
&:hover:not(.is-locked) {
@@ -86,7 +86,7 @@
@media (width <= 600px) {
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
}
@@ -98,8 +98,8 @@
.auth-method-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
gap: 0.6563rem;
margin-bottom: 0.4375rem;
}
.auth-method-icon {
@@ -114,7 +114,7 @@
flex-shrink: 0;
.pi {
font-size: 1rem;
font-size: var(--app-text-base);
}
&.oidc {
@@ -126,30 +126,30 @@
.auth-method-info {
display: flex;
flex-direction: column;
gap: 0.125rem;
gap: 0.1094rem;
}
.auth-method-label {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
font-weight: 600;
font-size: 0.9375rem;
font-size: 0.8203rem;
color: var(--p-text-color);
}
.auth-method-status {
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 600;
}
.auth-method-description {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--p-text-muted-color);
line-height: 1.5;
margin: 0;
padding-left: calc(36px + 0.75rem);
padding-left: calc(36px + 0.6563rem);
@media (width <= 600px) {
padding-left: 0;
@@ -160,14 +160,14 @@
display: block;
color: var(--p-orange-400);
font-weight: 500;
margin-top: 0.25rem;
margin-top: 0.2188rem;
}
// Configuration Grid
.config-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 900px) {
grid-template-columns: 1fr 1fr;
@@ -181,7 +181,7 @@
.config-grid-2col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 600px) {
grid-template-columns: 1fr;
@@ -191,7 +191,7 @@
.config-item {
display: flex;
flex-direction: column;
gap: 0.375rem;
gap: 0.3281rem;
&.full-width {
grid-column: 1 / -1;
@@ -208,7 +208,7 @@
label {
font-weight: 600;
color: var(--p-text-color);
font-size: 0.8125rem;
font-size: 0.7109rem;
}
input {
@@ -217,44 +217,44 @@
}
.field-hint {
font-size: 0.75rem;
font-size: var(--app-text-xs);
color: var(--p-text-muted-color);
line-height: 1.4;
}
.field-error {
font-size: 0.75rem;
font-size: var(--app-text-xs);
color: var(--p-red-400);
line-height: 1.4;
}
// Claims Section
.claims-section {
margin-top: 1rem;
padding-top: 1rem;
margin-top: 0.875rem;
padding-top: 0.875rem;
border-top: 1px dashed var(--p-content-border-color);
}
.subsection-title {
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 600;
color: var(--p-text-color);
margin: 0 0 0.25rem;
margin: 0 0 0.2188rem;
}
.subsection-description {
font-size: 0.75rem;
font-size: var(--app-text-xs);
color: var(--p-text-muted-color);
line-height: 1.4;
margin: 0 0 0.75rem;
margin: 0 0 0.6563rem;
}
.redirect-uri-input {
display: flex;
align-items: center;
width: 100%;
min-height: 2.25rem;
padding: 0.25rem 0.5rem;
min-height: 1.9688rem;
padding: 0.2188rem 0.4375rem;
border: 1px solid var(--p-content-border-color);
border-radius: 6px;
background: var(--p-inputtext-background);
@@ -273,9 +273,9 @@
border: 0;
box-shadow: none;
background: transparent;
min-width: 11rem;
flex: 1 1 11rem;
padding: 0.25rem 0;
min-width: 9.625rem;
flex: 1 1 9.625rem;
padding: 0.2188rem 0;
&:focus {
box-shadow: none;
@@ -286,7 +286,7 @@
.redirect-uri-chip-list {
display: flex;
align-items: center;
gap: 0.375rem;
gap: 0.3281rem;
flex-wrap: wrap;
width: 100%;
}
@@ -294,12 +294,12 @@
.redirect-uri-chip {
max-width: 100%;
flex-shrink: 1;
font-size: 0.8125rem;
font-size: 0.7109rem;
::ng-deep .p-chip {
padding: 0.1563rem 0.4063rem;
border-radius: 0.375rem;
line-height: 1.125rem;
padding: 0.1368rem 0.3555rem;
border-radius: 0.3281rem;
line-height: 0.9844rem;
}
::ng-deep .p-chip-label {
@@ -309,7 +309,7 @@
}
::ng-deep .p-chip-remove-icon {
font-size: 0.65rem;
font-size: 0.5687rem;
opacity: 0.6;
}
}
@@ -317,7 +317,7 @@
.claims-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
gap: 0.6563rem;
@media (width <= 900px) {
grid-template-columns: 1fr 1fr;
@@ -333,9 +333,9 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 1rem;
padding-top: 1rem;
gap: 0.875rem;
margin-top: 0.875rem;
padding-top: 0.875rem;
border-top: 1px dashed var(--p-content-border-color);
@media (width <= 600px) {
@@ -351,7 +351,7 @@
.provider-action-buttons {
display: flex;
gap: 0.5rem;
gap: 0.4375rem;
flex-shrink: 0;
}
@@ -359,14 +359,14 @@
.test-results-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.625rem 0.875rem;
gap: 0.4375rem;
padding: 0.5469rem 0.7656rem;
border-radius: 6px;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
cursor: pointer;
user-select: none;
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 500;
color: var(--p-text-color);
transition: background 0.15s ease;
@@ -376,7 +376,7 @@
}
.toggle-chevron {
font-size: 0.75rem;
font-size: var(--app-text-xs);
color: var(--p-text-muted-color);
transition: transform 0.2s ease;
margin-left: auto;
@@ -390,8 +390,8 @@
.test-results-details {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 0.5rem 0.875rem 0.625rem;
gap: 0.2188rem;
padding: 0.4375rem 0.7656rem 0.5469rem;
border: 1px solid var(--p-content-border-color);
border-top: none;
border-radius: 0 0 6px 6px;
@@ -401,9 +401,9 @@
.test-check-row {
display: flex;
align-items: baseline;
gap: 0.5rem;
padding: 0.1875rem 0;
font-size: 0.8125rem;
gap: 0.4375rem;
padding: 0.1641rem 0;
font-size: 0.7109rem;
.check-name {
font-weight: 500;
@@ -419,7 +419,7 @@
}
.pi {
font-size: 0.8125rem;
font-size: 0.7109rem;
flex-shrink: 0;
}
}
@@ -429,16 +429,16 @@
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
gap: 0.875rem;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color);
border-radius: 6px;
padding: 1rem;
padding: 0.875rem;
@media (width <= 600px) {
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
}
@@ -450,23 +450,23 @@
.toggle-info {
display: flex;
flex-direction: column;
gap: 0.125rem;
margin-bottom: 0.5rem;
gap: 0.1094rem;
margin-bottom: 0.4375rem;
}
.toggle-label {
font-weight: 600;
font-size: 0.9375rem;
font-size: 0.8203rem;
color: var(--p-text-color);
}
.toggle-status {
font-size: 0.875rem;
font-size: var(--app-text-sm);
font-weight: 600;
}
.toggle-description {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--p-text-muted-color);
line-height: 1.5;
margin: 0;
@@ -476,9 +476,9 @@
.default-settings {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 1rem;
padding-top: 1rem;
gap: 1.3125rem;
margin-top: 0.875rem;
padding-top: 0.875rem;
border-top: 1px dashed var(--p-content-border-color);
}
@@ -486,11 +486,11 @@
.libraries-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.group-title {
font-size: 0.9375rem;
font-size: 0.8203rem;
font-weight: 600;
color: var(--p-text-color);
margin: 0;
@@ -499,17 +499,17 @@
.permissions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.625rem;
padding-left: 0.5rem;
gap: 0.5469rem;
padding-left: 0.4375rem;
}
.permission-item {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
label {
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--p-text-color);
cursor: pointer;
}
@@ -524,17 +524,17 @@
.info-panel-grid {
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 0.6563rem;
}
.info-panel-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
gap: 0.2188rem;
}
.info-panel-label {
font-size: 0.8125rem;
font-size: 0.7109rem;
font-weight: 600;
color: var(--p-text-muted-color);
}
@@ -542,13 +542,13 @@
.info-panel-value-row {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.4375rem;
}
.info-panel-value {
flex: 1;
font-size: 0.8125rem;
padding: 0.375rem 0.625rem;
font-size: 0.7109rem;
padding: 0.3281rem 0.5469rem;
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-radius: 4px;
@@ -4,15 +4,15 @@
align-items: center;
justify-content: center;
height: 100vh;
gap: 1rem;
gap: 0.875rem;
color: var(--text-color);
background: var(--ground-background);
i {
font-size: 2.5rem;
font-size: 2.1875rem;
}
span {
font-size: 1.1rem;
font-size: 0.9625rem;
}
}
@@ -12,7 +12,7 @@ export class LoadingService {
loader.innerHTML = `
<div class="loader-content">
<i class="pi pi-spin pi-spinner" style="font-size: 3rem; color: var(--primary-color);"></i>
<p style="margin-top: 1rem; color: var(--text-color);">${message}</p>
<p style="margin-top: 0.875rem; color: var(--text-color);">${message}</p>
</div>
`;
loader.style.cssText = `
@@ -34,7 +34,7 @@ export class LoadingService {
content.style.cssText = `
text-align: center;
background: var(--card-background);
padding: 2rem;
padding: 1.75rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
`;