ssb: The red border is too much and stacks poorly. Let's try the same unread icon from the sidebar.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m51s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m51s
This commit is contained in:
parent
3bbc8c4d35
commit
7882fcbe8f
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&ePqnCcU373yUI01WtrFFKt+W/doAuMiN4g8qBt5p+rk=.sha256"
|
"previous": "&JfWdlllyfUCzLARI/4tNR1Xlfx8nN3ONBSCipVhGd6g=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -27,14 +27,7 @@ class TfMessageElement extends LitElement {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
static styles = [
|
static styles = styles;
|
||||||
...styles,
|
|
||||||
css`
|
|
||||||
.unread {
|
|
||||||
border-left: 2px solid red !important;
|
|
||||||
}
|
|
||||||
`,
|
|
||||||
];
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
@ -422,7 +415,7 @@ class TfMessageElement extends LitElement {
|
|||||||
return this.message?.decrypted
|
return this.message?.decrypted
|
||||||
? 'w3-pale-red'
|
? 'w3-pale-red'
|
||||||
: this.message?.rowid >= this.channel_unread
|
: this.message?.rowid >= this.channel_unread
|
||||||
? 'w3-theme-d2 unread'
|
? 'w3-theme-d2'
|
||||||
: 'w3-theme-d4';
|
: 'w3-theme-d4';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -513,7 +506,10 @@ class TfMessageElement extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<header class="w3-bar">
|
<header class="w3-bar">
|
||||||
<span class="w3-bar-item">
|
<span class="w3-bar-item">
|
||||||
<tf-user id=${this.message.author} .users=${this.users}></tf-user>
|
${this.render_unread_icon()}<tf-user
|
||||||
|
id=${this.message.author}
|
||||||
|
.users=${this.users}
|
||||||
|
></tf-user>
|
||||||
</span>
|
</span>
|
||||||
${is_encrypted} ${this.render_menu()}
|
${is_encrypted} ${this.render_menu()}
|
||||||
<div class="w3-bar-item w3-right" style="text-wrap: nowrap">
|
<div class="w3-bar-item w3-right" style="text-wrap: nowrap">
|
||||||
@ -635,6 +631,10 @@ class TfMessageElement extends LitElement {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
render_unread_icon() {
|
||||||
|
return this.message?.rowid >= this.channel_unread ? html`✉️` : undefined;
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let content = this.message?.content;
|
let content = this.message?.content;
|
||||||
if (this.message?.decrypted?.type == 'post') {
|
if (this.message?.decrypted?.type == 'post') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user