From 24a64d01187316b26524dc042024146eee52df3e Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:59:15 +0300 Subject: [PATCH 1/2] add limit to grouping works --- .../work-stack-group.component.html | 50 +++++++++++++++---- .../work-stack-group.component.scss | 24 ++++++++- ...work-stack-group.component.scss-theme.scss | 3 ++ .../properties/works/works.en.properties | 2 + 4 files changed, 68 insertions(+), 11 deletions(-) diff --git a/src/app/record/components/work-stack-group/work-stack-group.component.html b/src/app/record/components/work-stack-group/work-stack-group.component.html index 7f4647d858..84e497859e 100644 --- a/src/app/record/components/work-stack-group/work-stack-group.component.html +++ b/src/app/record/components/work-stack-group/work-stack-group.component.html @@ -76,14 +76,44 @@ Actions arrow_drop_down - + diff --git a/src/app/record/components/work-stack-group/work-stack-group.component.scss b/src/app/record/components/work-stack-group/work-stack-group.component.scss index 15eef05898..24ad9b8e5b 100644 --- a/src/app/record/components/work-stack-group/work-stack-group.component.scss +++ b/src/app/record/components/work-stack-group/work-stack-group.component.scss @@ -14,6 +14,15 @@ app-work-stack:last-child { margin-bottom: 0; } +.orc-font-small-print { + line-height: 18px; +} + +.group-selected-works-label { + line-height: 21px; + letter-spacing: 0.25px; +} + p.empty { margin-bottom: 0; } @@ -75,7 +84,20 @@ button { } button.mat-menu-item { + & > div { + & > mat-icon { + display: flex; + align-items: center; + } + display: inline-block; + vertical-align: middle; + } + max-width: 350px; white-space: normal; - height: auto !important; + height: 48px !important; + padding: 0 16px 0 16px; + margin-left: 0; + display: flex; + align-items: center; } diff --git a/src/app/record/components/work-stack-group/work-stack-group.component.scss-theme.scss b/src/app/record/components/work-stack-group/work-stack-group.component.scss-theme.scss index 8a587a09ee..5adc3d85f1 100644 --- a/src/app/record/components/work-stack-group/work-stack-group.component.scss-theme.scss +++ b/src/app/record/components/work-stack-group/work-stack-group.component.scss-theme.scss @@ -16,6 +16,9 @@ ) !important; } } + .error-icon { + color: rgba($state-warning-dark, 0.38) !important; + } } @include work-stack-group-theme($orcid-app-theme); diff --git a/src/locale/properties/works/works.en.properties b/src/locale/properties/works/works.en.properties index a1f4eb2601..4ea3e2325a 100644 --- a/src/locale/properties/works/works.en.properties +++ b/src/locale/properties/works/works.en.properties @@ -225,3 +225,5 @@ works.lead=Lead works.coLead=Co-lead works.supportedBy=Supported by works.otherContribution=Other contribution +works.selected=selected +works.fiveWorksMax=5 works maximum, From 8f5cb4d97d325626eb081e66019448c4c5902e67 Mon Sep 17 00:00:00 2001 From: leomendoza123 Date: Mon, 3 Jun 2024 16:25:56 -0600 Subject: [PATCH 2/2] Update works.en.properties --- src/locale/properties/works/works.en.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locale/properties/works/works.en.properties b/src/locale/properties/works/works.en.properties index 4ea3e2325a..b2a340037c 100644 --- a/src/locale/properties/works/works.en.properties +++ b/src/locale/properties/works/works.en.properties @@ -227,3 +227,4 @@ works.supportedBy=Supported by works.otherContribution=Other contribution works.selected=selected works.fiveWorksMax=5 works maximum, +shared.combineWorks=Group selected works