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.

empty_list_widget: Use class instead of id.

Aman Agrawal4db331ed2155
diff --git a/web/src/user_profile.js b/web/src/user_profile.js
index 4b74973b17a..e1612b59ff8 100644
--- a/web/src/user_profile.js
+++ b/web/src/user_profile.js
@@ -214,7 +214,7 @@ function render_user_stream_list(streams, user) {
return item && item.name.toLocaleLowerCase().includes(value);
},
onupdate() {
- if ($container.find("#empty-table-message").length) {
+ if ($container.find(".empty-table-message").length) {
$container.parent().addClass("empty-list");
}
},
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index a010ae28189..bc23b51f363 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -1172,12 +1172,12 @@ div.overlay {
}
}
-#empty-list-message,
-#empty-table-message {
+.empty-list-message,
+.empty-table-message {
background-color: inherit;
color: var(--color-text-default);
font-size: 1.5em;
- padding: 3em 1em;
+ padding: 3em 1em !important;
text-align: center;
}
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index f0c6b1a96cc..6994bef9c42 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -663,7 +663,7 @@ ul {
.empty-list {
border: none;
- #empty-table-message {
+ .empty-table-message {
padding: 3em 1em;
}
}
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index e6c8629c5f7..a58de9c7fd9 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -53,7 +53,7 @@
}
}
- #empty-table-message {
+ .empty-table-message {
background-color: var(--color-background);
padding: 3em 1em;
}
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 7bf8d990551..69ac66e8071 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -85,7 +85,7 @@ $user_status_emoji_width: 24px;
display: block;
}
- #empty-list-message {
+ .empty-list-message {
font-size: 1.2em;
&:hover {
diff --git a/web/templates/empty_list_widget_for_list.hbs b/web/templates/empty_list_widget_for_list.hbs
index 191d781be27..47d5fc51d76 100644
--- a/web/templates/empty_list_widget_for_list.hbs
+++ b/web/templates/empty_list_widget_for_list.hbs
@@ -1 +1 @@
-<li id="empty-list-message">{{empty_list_message}}</li>
+<li class="empty-list-message">{{empty_list_message}}</li>
diff --git a/web/templates/empty_list_widget_for_table.hbs b/web/templates/empty_list_widget_for_table.hbs
index 63767c8b186..5cd6397e722 100644
--- a/web/templates/empty_list_widget_for_table.hbs
+++ b/web/templates/empty_list_widget_for_table.hbs
@@ -1,5 +1,5 @@
<tr>
- <td id="empty-table-message" colspan="{{column_count}}">
+ <td class="empty-table-message" colspan="{{column_count}}">
{{empty_list_message}}
</td>
</tr>