ssb: Move mentions into the channels sidebar.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
2024-12-05 20:45:20 -05:00
parent 405bddcde0
commit d4e75c1dec
6 changed files with 33 additions and 98 deletions

View File

@ -149,7 +149,7 @@ class TfTabNewsElement extends LitElement {
}
render() {
let profile = this.hash.startsWith('#@')
let profile = this.hash.startsWith('#@') && this.hash != '#@'
? html`<tf-profile
class="tf-profile"
id=${this.hash.substring(1)}
@ -181,6 +181,7 @@ class TfTabNewsElement extends LitElement {
undefined}
<div class="w3-bar-item w3-theme-d2">Channels</div>
<a href="#" class="w3-bar-item w3-button" style=${this.hash == '#' ? 'font-weight: bold' : undefined}>general ${this.unread_status('')}</a>
<a href="#@" class="w3-bar-item w3-button" style=${this.hash == '#@' ? 'font-weight: bold' : undefined}>@mentions ${this.unread_status('@')}</a>
${this.channels.map(x => html`
<a
href=${'#' + encodeURIComponent('#' + x)}