Add some initial styling
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
7139711314
commit
3fb89a81bc
3 changed files with 25 additions and 1 deletions
|
@ -38,3 +38,7 @@ ul.MemberListView {
|
|||
overflow: scroll;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.MemberTileView {
|
||||
display: flex;
|
||||
}
|
||||
|
|
|
@ -865,3 +865,20 @@ button.link {
|
|||
.RoomDetailsView .close {
|
||||
background-image: url("./icons/clear.svg");
|
||||
}
|
||||
|
||||
/* Memberlist Panel */
|
||||
|
||||
.MemberTileView {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.MemberTileView .avatar {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.MemberTileView_name {
|
||||
text-overflow: ellipsis;
|
||||
overflow: clip;
|
||||
width: 184px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,9 @@ import {AvatarView} from "../../avatar.js";
|
|||
|
||||
export class MemberTileView extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.div([t.view(new AvatarView(vm, 32)), vm => vm.name]);
|
||||
return t.div({ className: "MemberTileView" }, [
|
||||
t.view(new AvatarView(vm, 32)),
|
||||
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue