feat: hide primary button label in mobile if icon is present

This commit is contained in:
Shivam Mishra 2020-08-31 17:01:36 +05:30
parent 4cecb40fc4
commit 1f05e30cbf

View file

@ -157,7 +157,7 @@ frappe.ui.Page = Class.extend({
},
get_icon_label: function(icon, label) {
return `${icon ? frappe.utils.icon(icon, 'xs') : ''} <span> ${__(label)} </span>`;
return `${icon ? frappe.utils.icon(icon, 'xs') : ''} <span class="hidden-xs"> ${__(label)} </span>`;
},
set_action: function(btn, opts) {