From 0d72105bc879972619b5bb7ded95b8b225bfacdd Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Thu, 28 Dec 2023 15:27:14 -0600 Subject: [PATCH 1/2] fix/batch-fixes-dec-28 --- src/app/core/title-service/title.service.ts | 5 ++++- src/app/layout/user-menu/user-menu.component.scss | 2 -- .../pages/link-account/link-account.component.html | 11 ++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/app/core/title-service/title.service.ts b/src/app/core/title-service/title.service.ts index a822d5523f..3a3eb39ebb 100644 --- a/src/app/core/title-service/title.service.ts +++ b/src/app/core/title-service/title.service.ts @@ -53,7 +53,10 @@ export class TitleService { } setTitle(title: string) { - if (title) this._titleService.setTitle(title.replace(/-'/g, '−')) + if (title) { + title = title.replace(/-/g, '᭸') + this._titleService.setTitle(title) + } } setDisplayName(displayedNameWithId: string) { diff --git a/src/app/layout/user-menu/user-menu.component.scss b/src/app/layout/user-menu/user-menu.component.scss index 41fac0cf8a..c1445075de 100644 --- a/src/app/layout/user-menu/user-menu.component.scss +++ b/src/app/layout/user-menu/user-menu.component.scss @@ -27,8 +27,6 @@ width: 199px; overflow: hidden; text-overflow: ellipsis; - text-align: left; - text-align: left; white-space: initial; word-break: break-word; } diff --git a/src/app/link-account/pages/link-account/link-account.component.html b/src/app/link-account/pages/link-account/link-account.component.html index a94dd9a6e2..71bd9c4631 100644 --- a/src/app/link-account/pages/link-account/link-account.component.html +++ b/src/app/link-account/pages/link-account/link-account.component.html @@ -28,7 +28,16 @@ You are signed into {{ entityDisplayName }} - as + + as + {{ signInData.email From 0ea16c1d59e03b34b7149dd6cb5a394e85e93dbc Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Thu, 28 Dec 2023 15:33:15 -0600 Subject: [PATCH 2/2] Improve UI, use 7 days default --- src/app/core/title-service/title.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/core/title-service/title.service.ts b/src/app/core/title-service/title.service.ts index 3a3eb39ebb..e60c833409 100644 --- a/src/app/core/title-service/title.service.ts +++ b/src/app/core/title-service/title.service.ts @@ -53,10 +53,12 @@ export class TitleService { } setTitle(title: string) { - if (title) { + // Use a replacement of the score for arabic titles to avoid the ORCID to be show in reverse + const arabic = /[\u0600-\u06FF]/ + if (arabic.test(title)) { title = title.replace(/-/g, '᭸') - this._titleService.setTitle(title) } + this._titleService.setTitle(title) } setDisplayName(displayedNameWithId: string) {