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