mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
left_sidebar: Refactor left_sidebar.hbs structures for readability.
This commit renames the classes and IDs in the views area (formerly global filters) to a set of flexible values all prefixed in some way with `left-sidebar-navigation`. This is meant to make the styles and structures in the area more readable, while also keeping things flexible into the future as this area's elements change. Co-Authored-By: Hardik Dharmani <Ddharmani99@gmail.com>
This commit is contained in:
@@ -627,7 +627,9 @@ export function initialize() {
|
||||
// MISC
|
||||
|
||||
{
|
||||
const sel = ["#stream_filters", "#global_filters", "#user_presences"].join(", ");
|
||||
const sel = ["#stream_filters", "#left-sidebar-navigation-list", "#user_presences"].join(
|
||||
", ",
|
||||
);
|
||||
|
||||
$(sel).on("click", "a", function () {
|
||||
this.blur();
|
||||
@@ -801,7 +803,7 @@ export function initialize() {
|
||||
// End Webathena code
|
||||
|
||||
// disable the draggability for left-sidebar components
|
||||
$("#stream_filters, #global_filters").on("dragstart", (e) => {
|
||||
$("#stream_filters, #left-sidebar-navigation-list").on("dragstart", (e) => {
|
||||
e.target.blur();
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user