From 7b22fb7e2da980962eab08561e56c6ee9832100a Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Mon, 23 Mar 2026 12:51:46 +0000 Subject: [PATCH] fix(list_view): ensure count element text does not wrap --- frappe/public/js/frappe/list/list_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 497e651b73..bea3d16399 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -698,6 +698,8 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { let me = this; let $count = this.get_count_element(); + $count.css("white-space", "nowrap"); + this.get_count_str().then((count) => { $count.html(`${count}`); if ( @@ -712,7 +714,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { ); $count.tooltip({ delay: { show: 600, hide: 100 }, trigger: "hover" }); $count.css("cursor", "pointer"); - $count.css("white-space", "nowrap"); $count.on("click", () => { me.count_upper_bound = 0; $count.off("click");