css classes for extra preview fields

This commit is contained in:
Bruno Windels 2020-12-02 13:16:32 +01:00
parent 0141f5b896
commit 60b280bbf9
1 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,9 @@ export class PreviewView extends TemplateView {
t.div({className: "preview"}, [
t.p(t.img({className: "avatar", src: vm => vm.avatarUrl})),
t.h1(vm => vm.name),
t.p(vm => vm.identifier),
t.p({className: {hidden: vm => !vm.memberCount}}, [vm => vm.memberCount, " members"]),
t.p({className: {hidden: vm => !vm.topic}}, [vm => vm.topic]),
t.p({className: "identifier"}, vm => vm.identifier),
t.p({className: {memberCount: true, hidden: vm => !vm.memberCount}}, [vm => vm.memberCount, " members"]),
t.p({className: {topic: true, hidden: vm => !vm.topic}}, [vm => vm.topic]),
]),
t.p({className: {hidden: vm => vm.clientsViewModel}}, t.button({
className: "primary fullwidth",