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