Merge pull request #3000 from mervekaraman/master

Left menu chevron not rotating
This commit is contained in:
Cüneyt Şentürk 2023-07-04 11:40:30 +03:00 committed by GitHub
commit d48fc2cd56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

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

View File

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