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.

resize: Avoid deprecated numeric values for jQuery .css().

Anders Kaseorg667e6a2a0154
diff --git a/web/src/resize.ts b/web/src/resize.ts
index 3857d8eb27c..25a67056f9f 100644
--- a/web/src/resize.ts
+++ b/web/src/resize.ts
@@ -207,9 +207,9 @@ export function update_recent_view(): void {
const num_avatars_narrow_window = 2;
const num_avatars_max = 4;
if (recent_view_filters_width < media_breakpoints_num.md) {
- $(":root").css("--recent-view-max-avatars", num_avatars_narrow_window);
+ $(":root").css("--recent-view-max-avatars", `${num_avatars_narrow_window}`);
} else {
- $(":root").css("--recent-view-max-avatars", num_avatars_max);
+ $(":root").css("--recent-view-max-avatars", `${num_avatars_max}`);
}
}