File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
assets/stylesheets/components Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 123123 box-shadow : 0 2px 6px rgba (0 , 0 , 0 , 0.2 );
124124}
125125
126+ .topic-icon-badge-sup {
127+ bottom : -6px ;
128+ right : -6px ;
129+ border-radius : 6px ;
130+ padding : 2px 6px ;
131+ font-variant-numeric : tabular-nums;
132+ }
133+
126134.status-border {
127135 border-left : 8px solid transparent;
128136}
Original file line number Diff line number Diff line change 88 tr class =" topic-row topic-#{state[:status ]}" data-topic-id =topic.id data-last-message-id =topic.messages.maximum(:id )
99 td class =" topic-title status-border status-#{state[:status ] || ' new' }" data-label =" Topic"
1010 - if state[:status ] == :reading
11+ - unread_count = [topic.messages.count - state[:read_count ], 0 ].max
1112 .topic-icon .topic-icon-reading
12- i .fa-solid .fa-message
13- - unread_count = topic.messages.count - state[ :read_count ]
14- span .topic-icon-badge = unread_count < 10 ? unread_count : " 9+ "
13+ i .fa-solid .fa-envelope
14+ - if unread_count.positive?
15+ span .topic-icon-badge . topic-icon-badge-sup = unread_count
1516 - if user_signed_in? && other_team_readers.any?
1617 - reader_count = other_team_readers.size
1718 div class =" topic-icon activity-team-read" data-controller =" hover-popover" data-hover-popover-delay-value =" 200" data-action =" mouseenter->hover-popover#show mouseleave->hover-popover#scheduleHide"
You can’t perform that action at this time.
0 commit comments