From 9da63af549a4df4c1c2da8c8caacba4d190950bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com> Date: Thu, 26 Jan 2023 11:35:43 +0100 Subject: [PATCH] feat: added link to profile in structure details --- .../profile-structure-member.component.scss | 4 ---- .../structure-details/structure-details.component.html | 4 +++- .../structure-details/structure-details.component.scss | 4 ++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/profile/profile-structure/profile-structure-member/profile-structure-member.component.scss b/src/app/profile/profile-structure/profile-structure-member/profile-structure-member.component.scss index d08d5b635..e3b3f8c87 100644 --- a/src/app/profile/profile-structure/profile-structure-member/profile-structure-member.component.scss +++ b/src/app/profile/profile-structure/profile-structure-member/profile-structure-member.component.scss @@ -30,15 +30,11 @@ } } - .contanct, .nameJobSection { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; - } - - .nameJobSection { width: 50%; } } diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html index cd02c9172..d0fa305be 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.html +++ b/src/app/structure-list/components/structure-details/structure-details.component.html @@ -321,7 +321,9 @@ [iconClass]="'icon-40'" ></app-svg-icon> <div class="info-member"> - <p class="member">{{ member.name }} {{ member.surname | uppercase }}</p> + <a routerLink="/profile/{{ member._id }}" class="member" + >{{ member.name }} {{ member.surname | uppercase }}</a + > <p class="job" *ngIf="displayJobEmployer(member)">{{ displayJobEmployer(member) }}</p> </div> </div> diff --git a/src/app/structure-list/components/structure-details/structure-details.component.scss b/src/app/structure-list/components/structure-details/structure-details.component.scss index f75591248..cce48d930 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.scss +++ b/src/app/structure-list/components/structure-details/structure-details.component.scss @@ -121,6 +121,10 @@ ul { } .member { @include lato-bold-14; + text-decoration: none; + &:hover { + text-decoration: underline; + } } .job { @include lato-regular-14; -- GitLab