From 35030863a20489863907894026daa7a8a1681f6e Mon Sep 17 00:00:00 2001 From: Kyle Buss Date: Thu, 10 Oct 2024 14:57:59 -0500 Subject: [PATCH] SF-3027 Fix inconsistent styles of page titles --- .../checking-overview.component.html | 12 ++++++------ .../checking-overview.component.scss | 8 +++++++- .../app/checking/checking/checking.component.html | 5 ++++- .../app/checking/checking/checking.component.scss | 2 +- .../src/app/my-projects/my-projects.component.html | 2 +- .../serval-administration.component.html | 2 +- .../serval-administration.component.scss | 3 +++ .../src/app/settings/settings.component.html | 2 +- .../src/app/settings/settings.component.scss | 2 +- .../app/shared/share/share-control.component.html | 2 +- .../app/shared/share/share-control.component.scss | 5 +++++ .../ClientApp/src/app/sync/sync.component.html | 2 +- .../ClientApp/src/app/sync/sync.component.spec.ts | 2 +- .../draft-generation/draft-generation.component.html | 12 ++++++------ .../draft-generation/draft-generation.component.scss | 4 ---- .../translate-overview.component.html | 2 +- .../ClientApp/src/app/users/users.component.html | 2 +- .../ClientApp/src/app/users/users.component.scss | 3 +++ .../ClientApp/src/app/users/users.component.ts | 1 + .../ClientApp/src/material-styles.scss | 7 +++++++ .../system-administration.component.html | 2 +- .../system-administration.component.scss | 4 ++++ 22 files changed, 57 insertions(+), 29 deletions(-) create mode 100644 src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.scss diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.html index aa72b2c96f..9348be0f82 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.html @@ -1,7 +1,7 @@
- list -

{{ t(canCreateQuestion ? "manage_questions" : "my_progress") }}

+ list +
{{ t(canCreateQuestion ? "manage_questions" : "my_progress") }}
@if (canCreateQuestion) { @if (showImportButton) { @@ -238,8 +238,8 @@

{{ t(canCreateQuestion ? "manage_questions" : "my_progress") }}

}
- bar_chart -

{{ t(canCreateQuestion ? "project_stats" : "my_contributions") }}

+ bar_chart +
{{ t(canCreateQuestion ? "project_stats" : "my_contributions") }}
@@ -287,8 +287,8 @@

{{ t(canCreateQuestion ? "project_stats" : "my_contributions") }}

@if (canEditQuestion) {
- archive -

{{ t("archived_questions") }}

+ archive +
{{ t("archived_questions") }}
} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.scss index 807b6add40..69767d7567 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking-overview/checking-overview.component.scss @@ -6,9 +6,15 @@ justify-content: flex-end; align-items: center; column-gap: 8px; - h2 { + .title { flex-grow: 1; } + + .title-icon { + font-size: 36px; + height: 36px; + width: 36px; + } } .flex { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html index b6c8c78176..d907c4826d 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.html @@ -6,8 +6,11 @@ }
+
+ {{ t("questions") }} +

- {{ t("questions") }} ({{ totalVisibleQuestionsString }}) + ({{ totalVisibleQuestionsString }})

diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.scss index fe09443807..b9bb6f2d8e 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking.component.scss @@ -61,7 +61,7 @@ header { h2 { display: flex; - justify-content: space-between; + justify-content: end; align-items: center; margin: 0; flex: 1; diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/my-projects/my-projects.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/my-projects/my-projects.component.html index 45075664e3..5bd83716a5 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/my-projects/my-projects.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/my-projects/my-projects.component.html @@ -1,6 +1,6 @@
-

{{ t("my_projects") }}

+
{{ t("my_projects") }}
@if (!userHasProjects && !initialLoadingSFProjects && !loadingPTProjects) { {{ t("no_projects") }} {{ t("access_another_project") }} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.html index 75e4fb87a7..4587165498 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.html @@ -1,3 +1,3 @@ -

Serval Administration

+
Serval Administration
diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.scss index e69de29bb2..687de6304e 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-administration.component.scss @@ -0,0 +1,3 @@ +.title { + margin-bottom: 20px; +} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html index fd2a43fd1b..936f7fb12c 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.html @@ -1,6 +1,6 @@
-
{{ t("settings") }}
+
{{ t("settings") }}
@if (!isAppOnline) { {{ t("connect_network_to_change_settings") }} } diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss index 5421c3a41d..c7355d6b97 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/settings/settings.component.scss @@ -7,7 +7,7 @@ max-width: 800px; padding-block-end: 10px; - .mat-headline-4 { + .title { margin-bottom: 32px; } } diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.html index 3dc6baa599..66afbdab42 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.html @@ -1,5 +1,5 @@ -

{{ t("invite_people") }}

+
{{ t("invite_people") }}

{{ t("invite_people_intro") }}

{{ t("email_sharing") }}

@if (!isAppOnline) { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.scss index fa6b57d72c..dd6cb4cedd 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/shared/share/share-control.component.scss @@ -48,6 +48,11 @@ form { } } +.title { + margin-block-start: 0.67em; + margin-block-end: 0.67em; +} + ::ng-deep .invitation-role-panel .mat-mdc-option { height: 4em !important; diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.html index 7ecb3c74fa..0590699c23 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.html @@ -1,6 +1,6 @@
-

{{ t("synchronize_project", { projectName: projectName }) }}

+
{{ t("synchronize_project", { projectName: projectName }) }}
@if (!isAppOnline) { {{ t("connect_network_to_synchronize") }} } diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.spec.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.spec.ts index d413e6a5f8..df12c8cc37 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.spec.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/sync/sync.component.spec.ts @@ -319,7 +319,7 @@ class TestEnvironment { } get title(): HTMLElement { - return this.fixture.nativeElement.querySelector('#title'); + return this.fixture.nativeElement.querySelector('.title'); } get lastSyncDate(): HTMLElement { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.html index 897a3b58ba..66e63d313e 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.html @@ -1,12 +1,12 @@ @if (currentPage == "initial") { - @if (isBackTranslationMode) { -

{{ t("generate_back_translation_drafts_header") }}

- } @else { -

+
+ @if (isBackTranslationMode) { + {{ t("generate_back_translation_drafts_header") }} + } @else { {{ t("generate_forward_translation_drafts_header") }} -

- } + } +
@if (isDraftJobFetched && !isDraftInProgress(draftJob) && !hasAnyCompletedBuild) { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.scss index c3e22c360a..b0a8235f62 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation.component.scss @@ -12,10 +12,6 @@ padding-block-end: 10px; } -.mat-headline-4 { - margin: 0; -} - // Manually center over cancel button app-working-animated-indicator { margin-inline-start: 24px; diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/translate-overview/translate-overview.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/translate-overview/translate-overview.component.html index df9c332626..8137abbe4a 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/translate-overview/translate-overview.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/translate-overview/translate-overview.component.html @@ -1,5 +1,5 @@ -
{{ t("translate_overview") }}
+
{{ t("translate_overview") }}
@if (isPTUser) { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.html index ee4531263b..561c466be0 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.html @@ -1,4 +1,4 @@ -

{{ t("users") }}

+
{{ t("users") }}
diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.scss new file mode 100644 index 0000000000..a71c81c27a --- /dev/null +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.scss @@ -0,0 +1,3 @@ +.title { + margin-bottom: 32px; +} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.ts index 30038026a4..18e0580a39 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/users/users.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'app-users', + styleUrls: ['./users.component.scss'], templateUrl: './users.component.html' }) export class UsersComponent {} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/material-styles.scss b/src/SIL.XForge.Scripture/ClientApp/src/material-styles.scss index c4eb2f7ef6..3ca3c47cb1 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/material-styles.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/material-styles.scss @@ -217,3 +217,10 @@ mat-card-title { } } } + +div { + .title { + @extend .mat-headline-4; + margin-bottom: 0; + } +} diff --git a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.html b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.html index 7cfec0cb87..1587c60c44 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.html @@ -1,5 +1,5 @@
-

System Administration

+
System Administration
diff --git a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.scss b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.scss index 9a355538fc..2247ac85b3 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.scss +++ b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/system-administration/system-administration.component.scss @@ -10,3 +10,7 @@ mat-tab-group { app-sa-users { width: 100%; } + +.title { + margin-bottom: 20px; +}