mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
render unread rooms as bold
This commit is contained in:
parent
7458465ef6
commit
89392434ad
@ -57,6 +57,10 @@ export class RoomTileViewModel extends ViewModel {
|
||||
return this._isOpen;
|
||||
}
|
||||
|
||||
get isUnread() {
|
||||
return this._room.isUnread;
|
||||
}
|
||||
|
||||
get name() {
|
||||
return this._room.name;
|
||||
}
|
||||
|
@ -31,6 +31,10 @@ limitations under the License.
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.LeftPanel .name.unread {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.LeftPanel div.description {
|
||||
margin: 0;
|
||||
flex: 1 1 0;
|
||||
|
@ -21,7 +21,7 @@ export class RoomTile extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.li({"className": {"active": vm => vm.isOpen}}, [
|
||||
renderAvatar(t, vm, 32),
|
||||
t.div({className: "description"}, t.div({className: "name"}, vm => vm.name))
|
||||
t.div({className: "description"}, t.div({className: {"name": true, unread: vm => vm.isUnread}}, vm => vm.name))
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user