mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Add some initial styling
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
7139711314
commit
3fb89a81bc
@ -38,3 +38,7 @@ ul.MemberListView {
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.MemberTileView {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
@ -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),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user