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:
commit
29b222105b
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue