2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Merge pull request #529 from zaqoutabed/rtl-sidebar

fix: fix rtl for sidebar toggle btn
This commit is contained in:
Alan 2023-01-19 23:03:53 -08:00 committed by GitHub
commit b4818d35f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,7 @@
class="
fixed
top-0
left-0
start-0
w-screen
h-screen
z-20

View File

@ -36,15 +36,16 @@
class="
absolute
bottom-0
left-0
start-0
text-gray-600
bg-gray-100
rounded
rtl-rotate-180
p-1
m-4
opacity-0
hover:opacity-100 hover:shadow-md
"
@click="sidebar = !sidebar"
>
<feather-icon name="chevrons-right" class="w-4 h-4" />
@ -76,6 +77,11 @@ export default {
transform: translateX(calc(-1 * var(--w-sidebar)));
width: 0px;
}
[dir='rtl'] .sidebar-leave-to {
opacity: 0;
transform: translateX(calc(1 * var(--w-sidebar)));
width: 0px;
}
.sidebar-enter-to,
.sidebar-leave-from {