Merge pull request #13850 from kevinpthorne/fix-inner-btn-menu-item

fix(deskUI): menu items reappear before inner page buttons disappear
This commit is contained in:
mergify[bot] 2021-08-12 12:38:58 +00:00 committed by GitHub
commit 29b222105b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -1145,7 +1145,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;