Permalink
Browse files

component: Highlight mention notifications in light red.

  • Loading branch information...
dmitshur committed Oct 11, 2017
1 parent 98af235 commit 2372e6e98faca06fc5131d727a4c2a36c4578439
Showing with 6 additions and 1 deletion.
  1. +6 −1 component/component.go
View
@@ -245,7 +245,12 @@ func (n Notification) Render() []*html.Node {
divClass += " read"
}
div := htmlg.DivClass(divClass, span1, span2)
if n.Participating {
switch {
case n.Mentioned:
div.Attr = append(div.Attr, html.Attribute{
Key: atom.Style.String(), Val: "background-color: #ffe6e6;",
})
case n.Participating:
div.Attr = append(div.Attr, html.Attribute{
Key: atom.Style.String(), Val: "background-color: #fff9e6;",
})

1 comment on commit 2372e6e

@dmitshur

This comment has been minimized.

Show comment
Hide comment
@dmitshur

dmitshur Oct 11, 2017

Member

Screenshots

All 3 states:

image

Many mentions:

image

Many participating, single mention:

image

Member

dmitshur commented on 2372e6e Oct 11, 2017

Screenshots

All 3 states:

image

Many mentions:

image

Many participating, single mention:

image

Please sign in to comment.