mirror of https://github.com/zulip/zulip.git
inbox: Improve look of empty inbox view.
This commit is contained in:
parent
1839eb0239
commit
e4ae826a47
|
@ -247,6 +247,11 @@ Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
|
||||||
License: Expat
|
License: Expat
|
||||||
Comment: Icon has been modified by Vlad Koborov
|
Comment: Icon has been modified by Vlad Koborov
|
||||||
|
|
||||||
|
Files: web/images/empty-view-illustrations/inbox-done.svg
|
||||||
|
Copyright: 2013-2023 Cole Bemis (https://feathericons.com)
|
||||||
|
License: Expat
|
||||||
|
Comment: Custom made out of feather icons by Vlad Koborov
|
||||||
|
|
||||||
Files: web/shared/icons/unmute.svg
|
Files: web/shared/icons/unmute.svg
|
||||||
Source: https://fonts.google.com/icons?selected=Material+Symbols+Rounded:volume_up
|
Source: https://fonts.google.com/icons?selected=Material+Symbols+Rounded:volume_up
|
||||||
Copyright: Google, Inc.
|
Copyright: Google, Inc.
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -514,7 +514,8 @@ function show_empty_inbox_text(has_visible_unreads) {
|
||||||
$("#inbox-empty-without-search").hide();
|
$("#inbox-empty-without-search").hide();
|
||||||
} else {
|
} else {
|
||||||
$("#inbox-empty-with-search").hide();
|
$("#inbox-empty-with-search").hide();
|
||||||
$("#inbox-empty-without-search").show();
|
// Use display value specified in CSS.
|
||||||
|
$("#inbox-empty-without-search").css("display", "");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$(".inbox-empty-text").hide();
|
$(".inbox-empty-text").hide();
|
||||||
|
|
|
@ -496,3 +496,35 @@
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inbox-container #inbox-pane #inbox-empty-without-search {
|
||||||
|
margin-top: 70px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inbox-empty-illustration {
|
||||||
|
width: 54px;
|
||||||
|
height: 54px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
background-color: var(--color-background-inbox-no-unreads-illustration);
|
||||||
|
mask: url("../images/empty-view-illustrations/inbox-done.svg") no-repeat
|
||||||
|
center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inbox-empty-title {
|
||||||
|
/* Matches the font-size used for .empty-list-message */
|
||||||
|
font-size: 1.5em;
|
||||||
|
color: var(--color-background-inbox-no-unreads-illustration);
|
||||||
|
}
|
||||||
|
|
||||||
|
.inbox-empty-action {
|
||||||
|
font-size: 1.3em;
|
||||||
|
padding-top: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inbox-container #inbox-pane .inbox-empty-action-link {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: hsl(200deg 100% 40%);
|
||||||
|
}
|
||||||
|
|
|
@ -287,6 +287,7 @@ body {
|
||||||
/* Inbox view constants - Values from Figma design */
|
/* Inbox view constants - Values from Figma design */
|
||||||
--height-inbox-search: 26px;
|
--height-inbox-search: 26px;
|
||||||
--width-inbox-search: 346px;
|
--width-inbox-search: 346px;
|
||||||
|
--color-background-inbox-no-unreads-illustration: hsl(147deg 57% 25%);
|
||||||
--color-background-inbox: var(--color-background);
|
--color-background-inbox: var(--color-background);
|
||||||
--color-icon-search-inbox: hsl(0deg 0% 0%);
|
--color-icon-search-inbox: hsl(0deg 0% 0%);
|
||||||
--color-inbox-search-text: hsl(0deg 0% 0%);
|
--color-inbox-search-text: hsl(0deg 0% 0%);
|
||||||
|
@ -447,6 +448,7 @@ body {
|
||||||
|
|
||||||
/* Inbox view */
|
/* Inbox view */
|
||||||
--color-background-inbox: var(--color-background);
|
--color-background-inbox: var(--color-background);
|
||||||
|
--color-background-inbox-no-unreads-illustration: hsl(147deg 40% 55%);
|
||||||
--color-icon-search-inbox: hsl(0deg 0% 100%);
|
--color-icon-search-inbox: hsl(0deg 0% 100%);
|
||||||
--color-inbox-search-text: hsl(0deg 0% 95%);
|
--color-inbox-search-text: hsl(0deg 0% 95%);
|
||||||
--color-border-inbox-search: hsl(0deg 0% 100% / 20%);
|
--color-border-inbox-search: hsl(0deg 0% 100% / 20%);
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<div id="inbox-empty-without-search" class="inbox-empty-text">
|
||||||
|
<div class="inbox-empty-illustration"></div>
|
||||||
|
<div class="inbox-empty-title">
|
||||||
|
{{t "There are no unread messages in your inbox."}}
|
||||||
|
</div>
|
||||||
|
<div class="inbox-empty-action">
|
||||||
|
{{#tr}}
|
||||||
|
You might be interested in <z-link>recent conversations</z-link>.
|
||||||
|
{{#*inline "z-link"}}<a class="inbox-empty-action-link" href="#recent">{{> @partial-block}}</a>{{/inline}}
|
||||||
|
{{/tr}}
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -13,9 +13,7 @@
|
||||||
<div id="inbox-empty-with-search" class="inbox-empty-text empty-list-message">
|
<div id="inbox-empty-with-search" class="inbox-empty-text empty-list-message">
|
||||||
{{t "No conversations match your filters."}}
|
{{t "No conversations match your filters."}}
|
||||||
</div>
|
</div>
|
||||||
<div id="inbox-empty-without-search" class="inbox-empty-text empty-list-message">
|
{{> inbox_no_unreads}}
|
||||||
{{t "There are no unread messages in your inbox."}}
|
|
||||||
</div>
|
|
||||||
<div id="inbox-list">
|
<div id="inbox-list">
|
||||||
{{> inbox_list}}
|
{{> inbox_list}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue