fix(deskUI): menu items will show in menu before inner page buttons disappear

This commit is contained in:
Kevin Thorne 2021-08-03 15:25:50 -06:00
parent e8c1a27a7a
commit ae5fb4f995
2 changed files with 7 additions and 1 deletions

View file

@ -1141,7 +1141,7 @@ frappe.ui.form.Form = class FrappeForm {
// Add actions as menu item in Mobile View
let menu_item_label = group ? `${group} > ${label}` : label;
let menu_item = this.page.add_menu_item(menu_item_label, fn, false);
menu_item.parent().addClass("hidden-lg");
menu_item.parent().addClass("hidden-xl");
this.custom_buttons[label] = btn;
}

View file

@ -126,6 +126,12 @@ pre {
}
}
.hidden-xl {
@include media-breakpoint-up(lg) {
display: none !important;
}
}
.visible-xs {
@include media-breakpoint-up(sm) {
display: none !important;