update design of the member list and a (you) is written after your own name
This commit is contained in:
parent
d9076621bf
commit
9cd1090583
4 changed files with 21 additions and 15 deletions
|
|
@ -30,7 +30,12 @@
|
|||
class="onlineIcon"
|
||||
/>
|
||||
</div>
|
||||
<h1>{{ user.firstName }} {{ user.lastName }}</h1>
|
||||
<p>
|
||||
{{ user.firstName }} {{ user.lastName }} @if
|
||||
(this.userService.getCurrentUserId() === user.id) { ({{
|
||||
"sidebar-direct-messages-user.you" | translate
|
||||
}}) }
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
position: absolute;
|
||||
top: 199px;
|
||||
right: 108px;
|
||||
width: 320px;
|
||||
width: fit-content;
|
||||
max-width: 320px;
|
||||
min-width: 250px;
|
||||
height: fit-content;
|
||||
z-index: 4;
|
||||
border-radius: 35px;
|
||||
|
|
@ -23,7 +25,6 @@
|
|||
padding: 24px;
|
||||
@include displayFlex($g: 20px);
|
||||
flex-direction: column;
|
||||
|
||||
.positionHeader {
|
||||
@include displayFlex($j: space-between);
|
||||
font-size: 24px;
|
||||
|
|
@ -39,28 +40,27 @@
|
|||
max-height: 300px;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
|
||||
p {
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.user {
|
||||
@include displayFlex($g: 12px);
|
||||
padding: 6px;
|
||||
cursor: pointer;
|
||||
transition: 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-color: #edeefe;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.positionImg {
|
||||
@include displayFlex($a: flex-end);
|
||||
|
||||
.avatarImg {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.onlineIcon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
|
|
@ -75,7 +75,6 @@
|
|||
transition: background-color 0.2s ease-in-out;
|
||||
border-radius: 20px;
|
||||
padding: 8px;
|
||||
|
||||
&:hover {
|
||||
background-color: #888dec;
|
||||
cursor: pointer;
|
||||
|
|
@ -125,7 +124,6 @@
|
|||
border-radius: 25px;
|
||||
transition: 0.3s ease-in-out;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid #2c36f0;
|
||||
}
|
||||
|
|
@ -217,7 +215,6 @@
|
|||
background-color: #edeefe;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.positionImgBox {
|
||||
@include displayFlex($a: flex-end);
|
||||
|
||||
|
|
@ -227,7 +224,6 @@
|
|||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.onlineIcon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
></app-small-btn>
|
||||
</div>
|
||||
<div class="positionOfAllUsersInBox">
|
||||
@for(user of userService.getUsers(); track user){
|
||||
@for(user of userService.getUsers(); track user){ @if
|
||||
(this.userService.getCurrentUserId() !== user.id) {
|
||||
<div
|
||||
class="user"
|
||||
(click)="checkRoute([user]); closeSecondaryChatAndSidebar()"
|
||||
|
|
@ -26,9 +27,9 @@
|
|||
class="onlineIcon"
|
||||
/>
|
||||
</div>
|
||||
<h1>{{ user.firstName }} {{ user.lastName }}</h1>
|
||||
<p>{{ user.firstName }} {{ user.lastName }}</p>
|
||||
</div>
|
||||
}
|
||||
} }
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@ section {
|
|||
max-height: 300px;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
p {
|
||||
font-size: 19px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.user {
|
||||
@include displayFlex($g: 12px);
|
||||
padding: 6px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue