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.

left_sidebar: Use dm-list class.

Karl Stolleydcd891a1766f
diff --git a/web/src/click_handlers.js b/web/src/click_handlers.js
index 6c4979a6c78..c4a75a10701 100644
--- a/web/src/click_handlers.js
+++ b/web/src/click_handlers.js
@@ -592,7 +592,7 @@ export function initialize() {
function check_reference_removed(mutation, instance) {
return Array.prototype.includes.call(
mutation.removedNodes,
- $(instance.reference).parents(".pm-list")[0],
+ $(instance.reference).parents(".dm-list")[0],
);
}
diff --git a/web/src/pm_list.js b/web/src/pm_list.js
index a073817bd96..b8dfaf2e80e 100644
--- a/web/src/pm_list.js
+++ b/web/src/pm_list.js
@@ -86,7 +86,7 @@ export function update_private_messages() {
set_dom_to(new_dom);
} else {
// Otherwise, empty the section.
- $(".pm-list").empty();
+ $(".dm-list").empty();
prior_dom = undefined;
}
} else {
diff --git a/web/src/pm_list_dom.ts b/web/src/pm_list_dom.ts
index d885c8c7d51..19d70d167b3 100644
--- a/web/src/pm_list_dom.ts
+++ b/web/src/pm_list_dom.ts
@@ -60,7 +60,7 @@ export function more_private_conversations_li(
export function pm_ul(nodes: vdom.Node[]): vdom.Tag {
const attrs: [string, string][] = [
- ["class", "pm-list"],
+ ["class", "dm-list"],
["data-name", "private"],
];
return vdom.ul({
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 0f6cf91d248..fca45e90200 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -34,7 +34,7 @@
}
}
- & ul.pm-list,
+ & ul.dm-list,
& ul.filters {
color: hsl(0deg 0% 100% / 80%);
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index c1dd1d059b2..3b2dfdaa800 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -250,7 +250,7 @@ li.show-more-topics {
}
}
- & ul.pm-list {
+ & ul.dm-list {
list-style-type: none;
font-weight: 400;
margin-left: 0;
@@ -1168,7 +1168,7 @@ li.topic-list-item {
display: none;
}
- &.direct-messages-container ul.pm-list {
+ &.direct-messages-container ul.dm-list {
margin-bottom: $bottom_scrolling_buffer;
}
diff --git a/web/tests/vdom.test.js b/web/tests/vdom.test.js
index a79f11d5b75..98391df1d09 100644
--- a/web/tests/vdom.test.js
+++ b/web/tests/vdom.test.js
@@ -26,7 +26,7 @@ run_test("basics", () => {
run_test("attribute escaping", () => {
// So far most of the time our attributes are
- // hard-coded classes like "pm-list",
+ // hard-coded classes like "dm-list",
// but we need to be defensive about future code
// that might use data from possibly malicious users.
const opts = {