From 2f62168654af021af7664f41dbd1a1e5f8efcae5 Mon Sep 17 00:00:00 2001 From: Packeting <127834955+Packeting1@users.noreply.github.com> Date: Sun, 4 Jan 2026 11:17:30 +0800 Subject: [PATCH] fix: show form button in mobile print view --- frappe/printing/page/print/print.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frappe/printing/page/print/print.js b/frappe/printing/page/print/print.js index e20859348a..a3b8fba88b 100644 --- a/frappe/printing/page/print/print.js +++ b/frappe/printing/page/print/print.js @@ -88,14 +88,16 @@ frappe.ui.form.PrintView = class { icon: "refresh", }); - this.page.add_action_icon( - "es-line-filetype", - () => { - this.go_to_form_view(); - }, - "", - __("Form") - ); + if (frappe.is_mobile()) { + this.page.add_button(__("Form"), () => this.go_to_form_view(), { icon: "small-file" }); + } else { + this.page.add_action_icon( + "es-line-filetype", + () => this.go_to_form_view(), + "", + __("Form") + ); + } } setup_sidebar() {