2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +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=" class="
fixed fixed
top-0 top-0
left-0 start-0
w-screen w-screen
h-screen h-screen
z-20 z-20

View File

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