Skip to content

Commit 10f6aba

Browse files
authored
feat: add RTL support to CodeFileTree (#322)
1 parent 3501d9c commit 10f6aba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/components/CodeFileTree.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ watch(
3939
<template v-if="node.type === 'directory'">
4040
<button
4141
type="button"
42-
class="w-full flex items-center gap-1.5 py-1.5 px-3 text-left font-mono text-sm transition-colors hover:bg-bg-muted"
42+
class="w-full flex items-center gap-1.5 py-1.5 px-3 text-start font-mono text-sm transition-colors hover:bg-bg-muted"
4343
:class="isNodeActive(node) ? 'text-fg' : 'text-fg-muted'"
4444
:style="{ paddingLeft: `${depth * 12 + 12}px` }"
4545
@click="toggleDir(node.path)"
4646
>
4747
<span
4848
class="w-4 h-4 shrink-0 transition-transform"
49-
:class="[isExpanded(node.path) ? 'i-carbon-chevron-down' : 'i-carbon-chevron-right']"
49+
:class="[isExpanded(node.path) ? 'i-carbon:chevron-down' : 'i-carbon:chevron-right']"
5050
/>
5151
<span
5252
class="w-4 h-4 shrink-0"
5353
:class="
5454
isExpanded(node.path)
55-
? 'i-carbon-folder-open text-yellow-500'
56-
: 'i-carbon-folder text-yellow-600'
55+
? 'i-carbon:folder-open text-yellow-500'
56+
: 'i-carbon:folder text-yellow-600'
5757
"
5858
/>
5959
<span class="truncate">{{ node.name }}</span>

0 commit comments

Comments
 (0)