Add some initial styling

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-26 14:51:01 +05:30
parent 7139711314
commit 3fb89a81bc
3 changed files with 25 additions and 1 deletions

View File

@ -38,3 +38,7 @@ ul.MemberListView {
overflow: scroll; overflow: scroll;
height: 100vh; height: 100vh;
} }
.MemberTileView {
display: flex;
}

View File

@ -865,3 +865,20 @@ button.link {
.RoomDetailsView .close { .RoomDetailsView .close {
background-image: url("./icons/clear.svg"); 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;
}

View File

@ -3,6 +3,9 @@ import {AvatarView} from "../../avatar.js";
export class MemberTileView extends TemplateView { export class MemberTileView extends TemplateView {
render(t, vm) { 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),
]);
} }
} }