mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
notifications: Improve HTML/CSS for desktop notifications.
This commit is contained in:
@@ -222,6 +222,7 @@ function in_browser_notify(message, title, content, raw_operators, opts) {
|
|||||||
gravatar_url: ui.small_avatar_url(message),
|
gravatar_url: ui.small_avatar_url(message),
|
||||||
title: title,
|
title: title,
|
||||||
content: content,
|
content: content,
|
||||||
|
message_id: message.id,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
$('.top-right').notify({
|
$('.top-right').notify({
|
||||||
|
|||||||
@@ -2273,6 +2273,10 @@ button.topic_edit_cancel {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notification {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#empty_narrow_private_message p,
|
#empty_narrow_private_message p,
|
||||||
#empty_narrow_message p {
|
#empty_narrow_message p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{! Content of in-browser notifications }}
|
{{! Content of in-browser notifications }}
|
||||||
<div>
|
<div class="notification" data-message-id="{{message_id}}">
|
||||||
<div class="notifications-gravatar">
|
<div class="notifications-gravatar">
|
||||||
<img src="{{gravatar_url}}" />
|
<img src="{{gravatar_url}}" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user