From e4786ed5f59a7c7948aa34aa2c4fb071ca70f039 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Tue, 21 May 2024 17:10:36 +0300 Subject: [PATCH] add author shadow when mouseover on description and dmp overview overview --- .../overview/description-overview.component.html | 9 +++------ .../overview/description-overview.component.scss | 11 ++++++++++- .../overview/description-overview.component.ts | 10 ++++++++++ .../app/ui/dmp/overview/dmp-overview.component.html | 6 +++--- .../app/ui/dmp/overview/dmp-overview.component.scss | 12 ++++++++++-- .../app/ui/dmp/overview/dmp-overview.component.ts | 11 +++++++++++ 6 files changed, 47 insertions(+), 12 deletions(-) diff --git a/dmp-frontend/src/app/ui/description/overview/description-overview.component.html b/dmp-frontend/src/app/ui/description/overview/description-overview.component.html index 4673e3d5b..710dca7c6 100644 --- a/dmp-frontend/src/app/ui/description/overview/description-overview.component.html +++ b/dmp-frontend/src/app/ui/description/overview/description-overview.component.html @@ -183,10 +183,10 @@

{{ 'DESCRIPTION-OVERVIEW.DESCRIPTION-AUTHORS' | translate }}

-
+
@@ -197,13 +197,10 @@ {{ getSectionNameById(dmpUser.sectionId) }}

-
- - +
-
diff --git a/dmp-frontend/src/app/ui/description/overview/description-overview.component.scss b/dmp-frontend/src/app/ui/description/overview/description-overview.component.scss index 72d87a6e5..f4ee17589 100644 --- a/dmp-frontend/src/app/ui/description/overview/description-overview.component.scss +++ b/dmp-frontend/src/app/ui/description/overview/description-overview.component.scss @@ -116,7 +116,7 @@ } .account_btn { - background: white; + background: transparent; color: #d5d5d5; border: none; height: 2.9em; @@ -300,3 +300,12 @@ display: flex; justify-content: center; } + +.author-focused { + background-color: #e0e0e0; + border-radius: 3px; +} + +.author-icon-focused { + color: #a8a8a8 !important; +} diff --git a/dmp-frontend/src/app/ui/description/overview/description-overview.component.ts b/dmp-frontend/src/app/ui/description/overview/description-overview.component.ts index cf16a2e94..411724726 100644 --- a/dmp-frontend/src/app/ui/description/overview/description-overview.component.ts +++ b/dmp-frontend/src/app/ui/description/overview/description-overview.component.ts @@ -71,6 +71,8 @@ export class DescriptionOverviewComponent extends BaseComponent implements OnIni canReview = false; canInviteDmpUsers = false; + authorFocus: Guid; + constructor( private route: ActivatedRoute, private router: Router, @@ -214,6 +216,14 @@ export class DescriptionOverviewComponent extends BaseComponent implements OnIni } else return false; } + focusOnAuthor(userId: Guid): void { + this.authorFocus = userId; + console.log(this.authorFocus); + } + + resetAuthorFocus(): void { + this.authorFocus = null; + } openShareDialog() { const dialogRef = this.dialog.open(DmpInvitationDialogComponent, { diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html index 169a839f2..9fb728bce 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html @@ -244,10 +244,10 @@

{{ 'DMP-OVERVIEW.DMP-AUTHORS' | translate }}

-
+
@@ -269,7 +269,7 @@
-
+