fix(minor): hide side section on new doc.
* on new doc, hide sidebar is hidden. however, layout-side-section is still visible. * added hide-sidebar class to layout-side-section when doc is new.
This commit is contained in:
parent
95882f5b69
commit
658f58d1e0
2 changed files with 6 additions and 0 deletions
|
|
@ -67,7 +67,9 @@ frappe.ui.form.Sidebar = class {
|
|||
refresh() {
|
||||
if (this.frm.doc.__islocal) {
|
||||
this.sidebar.toggle(false);
|
||||
this.page.sidebar.addClass("hide-sidebar");
|
||||
} else {
|
||||
this.page.sidebar.removeClass("hide-sidebar");
|
||||
this.sidebar.toggle(true);
|
||||
this.frm.assign_to.refresh();
|
||||
this.frm.attachments.refresh();
|
||||
|
|
|
|||
|
|
@ -169,6 +169,10 @@ body[data-route^="Module"] .main-menu {
|
|||
@include get_textstyle("base", "regular");
|
||||
padding-right: 30px;
|
||||
|
||||
&.hide-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> .divider {
|
||||
display: none !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue