From ca2e04d35d4e7de367830672c861fb75c5ed2b19 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 8 Oct 2023 16:00:44 +0200 Subject: [PATCH 1/3] feat(listview): move likes to the right --- frappe/public/js/frappe/list/list_view.js | 27 ++++++++++++++--------- frappe/public/scss/desk/list.scss | 11 +++------ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 57b8f88f2d..50309f2707 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -631,9 +631,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { let subject_html = ` - ${__(subject_field.label)} @@ -667,7 +664,16 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { }) .join(""); - return this.get_header_html_skeleton($columns, ''); + const right_html = ` + + + `; + + return this.get_header_html_skeleton($columns, right_html); } get_header_html_skeleton(left = "", right = "") { @@ -909,19 +915,23 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { let comment_count = null; if (this.list_view_settings && !this.list_view_settings.disable_comment_count) { - comment_count = $(``); + comment_count = $(``); $(comment_count).append(` ${frappe.utils.icon("es-line-chat-alt")} ${doc._comment_count > 99 ? "99+" : doc._comment_count || 0}`); } html += ` -