mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-18 05:25:30 +02:00
Allow dismissing unread marker.
This commit is contained in:
parent
b93cae2e01
commit
e621e1e50f
|
@ -29,7 +29,9 @@
|
||||||
:key="message.id + '-unread'"
|
:key="message.id + '-unread'"
|
||||||
class="unread-marker"
|
class="unread-marker"
|
||||||
>
|
>
|
||||||
<span class="unread-marker-text" />
|
<span class="tooltipped tooltipped-n" aria-label="Dismiss">
|
||||||
|
<span class="unread-marker-text" @click="clearUnreadMarker" />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MessageCondensed
|
<MessageCondensed
|
||||||
|
@ -333,6 +335,9 @@ export default {
|
||||||
const el = this.$refs.chat;
|
const el = this.$refs.chat;
|
||||||
el.scrollTop = el.scrollHeight;
|
el.scrollTop = el.scrollHeight;
|
||||||
},
|
},
|
||||||
|
clearUnreadMarker() {
|
||||||
|
this.channel.firstUnread = this.channel.messages[this.channel.messages.length - 1].id;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1244,6 +1244,10 @@ textarea.input {
|
||||||
border-top: 1px solid var(--unread-marker-color);
|
border-top: 1px solid var(--unread-marker-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#chat .unread-marker-text {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#chat .unread-marker-text::before {
|
#chat .unread-marker-text::before {
|
||||||
content: "New messages";
|
content: "New messages";
|
||||||
background-color: var(--window-bg-color);
|
background-color: var(--window-bg-color);
|
||||||
|
|
Loading…
Reference in a new issue