Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

navbar: Replace fa-envelope with zulip-icon-user.

Shubham Padiaf77738c235a7
diff --git a/web/e2e-tests/navigation.test.ts b/web/e2e-tests/navigation.test.ts
index 0b2e0c55202..fd5b2578cbb 100644
--- a/web/e2e-tests/navigation.test.ts
+++ b/web/e2e-tests/navigation.test.ts
@@ -60,7 +60,7 @@ async function navigate_to_private_messages(page: Page): Promise<void> {
await page.waitForSelector(all_private_messages_icon, {visible: true});
await page.click(all_private_messages_icon);
- await page.waitForSelector("#message_view_header .fa-envelope", {visible: true});
+ await page.waitForSelector("#message_view_header .zulip-icon-user", {visible: true});
}
async function test_reload_hash(page: Page): Promise<void> {
diff --git a/web/src/filter.ts b/web/src/filter.ts
index 5a90551bcd9..3c5fd9bf151 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -1226,7 +1226,7 @@ export class Filter {
zulip_icon = "hashtag";
break;
case "is-dm":
- icon = "envelope";
+ zulip_icon = "user";
break;
case "is-starred":
zulip_icon = "star-filled";
@@ -1235,7 +1235,7 @@ export class Filter {
zulip_icon = "at-sign";
break;
case "dm":
- icon = "envelope";
+ zulip_icon = "user";
break;
case "is-resolved":
icon = "check";
diff --git a/web/styles/message_view_header.css b/web/styles/message_view_header.css
index 6ee27242685..68e1455253b 100644
--- a/web/styles/message_view_header.css
+++ b/web/styles/message_view_header.css
@@ -45,13 +45,6 @@
font-size: 1em;
}
- .fa-envelope {
- /* The squatter envelope icon appears
- better vertically centered when aligned
- to the baseline of the adjacent DM partners. */
- align-self: baseline;
- }
-
@media (height < $short_navbar_cutoff_height) {
padding: 0 3.5px; /* based on having ~41.66% decrease */
}
@@ -61,14 +54,6 @@
/* Align all icons to center. */
align-self: center;
}
-
- .fa {
- .fa-envelope {
- /* 14px at 16px em, inherited from .navbar_title */
- font-size: 0.875em;
- margin: 0 5px;
- }
- }
}
.message-header-navbar-title {
diff --git a/web/tests/filter.test.js b/web/tests/filter.test.js
index 18e3b2149fe..e5c56c98ef5 100644
--- a/web/tests/filter.test.js
+++ b/web/tests/filter.test.js
@@ -2058,7 +2058,7 @@ test("navbar_helpers", () => {
{
terms: is_dm,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: "translated: Direct message feed",
redirect_url_with_search: "/#narrow/is/dm",
},
@@ -2139,7 +2139,7 @@ test("navbar_helpers", () => {
{
terms: dm,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([joe.full_name]),
redirect_url_with_search:
"/#narrow/dm/" + joe.user_id + "-" + parseOneAddress(joe.email).local,
@@ -2147,14 +2147,14 @@ test("navbar_helpers", () => {
{
terms: dm_group,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([joe.full_name, steve.full_name]),
redirect_url_with_search: "/#narrow/dm/" + joe.user_id + "," + steve.user_id + "-group",
},
{
terms: dm_with_guest,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: "translated: alice (guest)",
redirect_url_with_search:
"/#narrow/dm/" + alice.user_id + "-" + parseOneAddress(alice.email).local,
@@ -2162,14 +2162,14 @@ test("navbar_helpers", () => {
{
terms: dm_group_including_guest,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: "translated: alice (guest) and joe",
redirect_url_with_search: "/#narrow/dm/" + joe.user_id + "," + alice.user_id + "-group",
},
{
terms: dm_group_including_missing_person,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([
joe.full_name,
steve.full_name,
@@ -2210,7 +2210,7 @@ test("navbar_helpers", () => {
{
terms: dm_near,
is_common_narrow: false,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([joe.full_name]),
redirect_url_with_search: "#",
},
@@ -2290,7 +2290,7 @@ test("navbar_helpers", () => {
{
terms: dm_with_guest,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([alice.full_name]),
redirect_url_with_search:
"/#narrow/dm/" + alice.user_id + "-" + parseOneAddress(alice.email).local,
@@ -2298,7 +2298,7 @@ test("navbar_helpers", () => {
{
terms: dm_group_including_guest,
is_common_narrow: true,
- icon: "envelope",
+ zulip_icon: "user",
title: properly_separated_names([alice.full_name, joe.full_name]),
redirect_url_with_search: "/#narrow/dm/" + joe.user_id + "," + alice.user_id + "-group",
},