From 0a2c64adce6b135c1566e33d00a43fe902442c05 Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Thu, 5 Mar 2026 15:29:05 +0530 Subject: [PATCH] fix(mobile): hide seperator when no data --- frappe/public/js/frappe/list/list_view.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 2c28a24063..8b4106d74a 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -837,9 +837,13 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { let col = this.columns[i]; if (frappe.is_mobile() && col.type == "Field" && [3, 4].includes(i)) { - left_html += `
${this.get_column_html(col, doc, true)}
`; + const no_seperator_class = !doc[col?.df?.fieldname] ? "no-seperator" : ""; + left_html += `
+ ${this.get_column_html(col, doc, true)} +
`; } else { left_html += this.get_column_html(col, doc, false); }