Skip to content

Commit 8123b76

Browse files
authored
feat: add RTL support to CodeDirectoryListing (#321)
1 parent 10f6aba commit 8123b76

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/components/CodeDirectoryListing.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function formatBytes(bytes: number): string {
7070
:to="parentPath ? `${baseUrl}/${parentPath}` : baseUrl"
7171
class="flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
7272
>
73-
<span class="i-carbon-folder w-4 h-4 text-yellow-600" />
73+
<span class="i-carbon:folder w-4 h-4 text-yellow-600" />
7474
<span>..</span>
7575
</NuxtLink>
7676
</td>
@@ -91,13 +91,13 @@ function formatBytes(bytes: number): string {
9191
>
9292
<span
9393
v-if="node.type === 'directory'"
94-
class="i-carbon-folder w-4 h-4 text-yellow-600"
94+
class="i-carbon:folder w-4 h-4 text-yellow-600"
9595
/>
9696
<span v-else class="w-4 h-4" :class="getFileIcon(node.name)" />
9797
<span>{{ node.name }}</span>
9898
</NuxtLink>
9999
</td>
100-
<td class="py-2 px-4 text-right font-mono text-xs text-fg-subtle">
100+
<td class="py-2 px-4 text-end font-mono text-xs text-fg-subtle">
101101
<span v-if="node.type === 'file' && node.size">
102102
{{ formatBytes(node.size) }}
103103
</span>

0 commit comments

Comments
 (0)