Left menu chevron not rotating

This commit is contained in:
Merve Karaman 2023-07-04 11:38:40 +03:00
parent f3169536fe
commit 382acaf02e
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,7 @@
function contentTransitionLeft() {
sectionContent.classList.add("xl:ltr:ml-0", "xl:rtl:mr-0");
sectionContent.classList.remove("xl:ltr:ml-64", "xl:rtl:mr-64");
toggleButton.querySelector("span").classList.remove("ltr:rotate-90", "rtl:-rotate-90");
toggleButton.querySelector("span").classList.add("ltr:-rotate-90", "rtl:rotate-90");
}
@ -66,8 +66,8 @@
function contentTransitionRight() {
sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0");
sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
toggleButton.querySelector("span").classList.remove("ltr:-rotate-90", "rtl:rotate-90");
toggleButton.querySelector("span").classList.add("ltr:rotate-90", "rtl:-rotate-90");
}
function hiddenSidebar() {

View File

@ -54,6 +54,7 @@
function contentTransitionLeft() {
sectionContent.classList.add("xl:ltr:ml-0", "xl:rtl:mr-0");
sectionContent.classList.remove("xl:ltr:ml-64", "xl:rtl:mr-64");
toggleButton.querySelector("span").classList.remove("ltr:rotate-90", "rtl:-rotate-90");
toggleButton.querySelector("span").classList.add("ltr:-rotate-90", "rtl:rotate-90");
}
@ -62,6 +63,7 @@
sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0");
sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
toggleButton.querySelector("span").classList.remove("ltr:-rotate-90", "rtl:rotate-90");
toggleButton.querySelector("span").classList.add("ltr:rotate-90", "rtl:-rotate-90");
}
function hiddenSidebar() {