Merge pull request #38974 from KerollesFathy/fix/sidebar-collapse-icon-rtl
fix(sidebar): correct collapse sidebar icon direction in RTL
This commit is contained in:
commit
bd57f0501a
1 changed files with 3 additions and 2 deletions
|
|
@ -576,16 +576,17 @@ frappe.ui.Sidebar = class Sidebar {
|
|||
|
||||
expand_sidebar() {
|
||||
let direction;
|
||||
const is_rtl = frappe.utils.is_rtl();
|
||||
if (this.sidebar_expanded) {
|
||||
this.wrapper.addClass("expanded");
|
||||
direction = "right";
|
||||
direction = is_rtl ? "left" : "right";
|
||||
$('[data-toggle="tooltip"]').tooltip("dispose");
|
||||
this.wrapper.find(".avatar-name-email").show();
|
||||
this.wrapper.find(".about-sidebar-link").show();
|
||||
this.wrapper.find(".onboarding-sidebar span").show();
|
||||
} else {
|
||||
this.wrapper.removeClass("expanded");
|
||||
direction = "left";
|
||||
direction = is_rtl ? "right" : "left";
|
||||
$('[data-toggle="tooltip"]').tooltip({
|
||||
boundary: "window",
|
||||
container: "body",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue