feat: hide primary button label in mobile if icon is present
This commit is contained in:
parent
4cecb40fc4
commit
1f05e30cbf
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue