Skip to content

Commit 3501d9c

Browse files
authored
feat: add RTL support to CodeMobileTreeDrawer (#323)
1 parent 9ba8de9 commit 3501d9c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

app/components/CodeMobileTreeDrawer.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ watch(isOpen, open => (isLocked.value = open))
2727
<!-- Toggle button (mobile only) -->
2828
<button
2929
type="button"
30-
class="md:hidden fixed bottom-4 right-4 z-40 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors"
30+
class="md:hidden fixed bottom-4 inset-ie-4 z-40 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors"
3131
:aria-label="$t('code.toggle_tree')"
3232
@click="isOpen = !isOpen"
3333
>
34-
<span class="w-5 h-5" :class="isOpen ? 'i-carbon-close' : 'i-carbon-folder'" />
34+
<span class="w-5 h-5" :class="isOpen ? 'i-carbon:close' : 'i-carbon:folder'" />
3535
</button>
3636

3737
<!-- Backdrop -->
@@ -57,19 +57,20 @@ watch(isOpen, open => (isLocked.value = open))
5757
>
5858
<aside
5959
v-if="isOpen"
60-
class="md:hidden fixed inset-y-0 left-0 z-50 w-72 bg-bg-subtle border-r border-border overflow-y-auto"
60+
class="md:hidden fixed inset-y-0 inset-is-0 z-50 w-72 bg-bg-subtle border-ie border-border overflow-y-auto"
6161
>
6262
<div
63-
class="sticky top-0 bg-bg-subtle border-b border-border px-4 py-3 flex items-center justify-between"
63+
class="sticky top-0 bg-bg-subtle border-b border-border px-4 py-3 flex items-center justify-start"
6464
>
6565
<span class="font-mono text-sm text-fg-muted">{{ $t('code.files_label') }}</span>
66+
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
6667
<button
6768
type="button"
6869
class="text-fg-muted hover:text-fg transition-colors"
6970
:aria-label="$t('code.close_tree')"
7071
@click="isOpen = false"
7172
>
72-
<span class="i-carbon-close w-5 h-5" />
73+
<span class="i-carbon:close w-5 h-5" />
7374
</button>
7475
</div>
7576
<CodeFileTree :tree="tree" :current-path="currentPath" :base-url="baseUrl" />

0 commit comments

Comments
 (0)