Skip to content

Commit 2e59e1a

Browse files
authored
feat: add RTL support to code/[...path] page (#359)
1 parent c5b2db6 commit 2e59e1a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

app/pages/code/[...path].vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ useSeoMeta({
329329

330330
<!-- Loading state -->
331331
<div v-else-if="treeStatus === 'pending'" class="container py-20 text-center">
332-
<div class="i-svg-spinners-ring-resize w-8 h-8 mx-auto text-fg-muted" />
332+
<div class="i-svg-spinners:ring-resize w-8 h-8 mx-auto text-fg-muted" />
333333
<p class="mt-4 text-fg-muted">{{ $t('code.loading_tree') }}</p>
334334
</div>
335335

@@ -343,7 +343,7 @@ useSeoMeta({
343343
<div v-else-if="fileTree" class="flex flex-1">
344344
<!-- File tree sidebar - sticky with internal scroll -->
345345
<aside
346-
class="w-64 lg:w-72 border-r border-border shrink-0 hidden md:block bg-bg-subtle sticky top-28 self-start h-[calc(100vh-7rem)] overflow-y-auto"
346+
class="w-64 lg:w-72 border-ie border-border shrink-0 hidden md:block bg-bg-subtle sticky top-28 self-start h-[calc(100vh-7rem)] overflow-y-auto"
347347
>
348348
<CodeFileTree
349349
:tree="fileTree.tree"
@@ -385,7 +385,7 @@ useSeoMeta({
385385
class="px-2 py-1 font-mono text-xs text-fg-muted bg-bg-subtle border border-border rounded hover:text-fg hover:border-border-hover transition-colors inline-flex items-center gap-1"
386386
>
387387
{{ $t('code.raw') }}
388-
<span class="i-carbon-launch w-3 h-3" />
388+
<span class="i-carbon:launch w-3 h-3" />
389389
</a>
390390
</div>
391391
</div>
@@ -399,7 +399,7 @@ useSeoMeta({
399399

400400
<!-- File too large warning -->
401401
<div v-else-if="isViewingFile && isFileTooLarge" class="py-20 text-center">
402-
<div class="i-carbon-document w-12 h-12 mx-auto text-fg-subtle mb-4" />
402+
<div class="i-carbon:document w-12 h-12 mx-auto text-fg-subtle mb-4" />
403403
<p class="text-fg-muted mb-2">{{ $t('code.file_too_large') }}</p>
404404
<p class="text-fg-subtle text-sm mb-4">
405405
{{ $t('code.file_size_warning', { size: formatBytes(currentNode?.size ?? 0) }) }}
@@ -411,7 +411,7 @@ useSeoMeta({
411411
class="btn inline-flex items-center gap-2"
412412
>
413413
{{ $t('code.view_raw') }}
414-
<span class="i-carbon-launch w-4 h-4" />
414+
<span class="i-carbon:launch w-4 h-4" />
415415
</a>
416416
</div>
417417

@@ -423,7 +423,7 @@ useSeoMeta({
423423
:aria-label="$t('common.loading')"
424424
>
425425
<!-- Fake line numbers column -->
426-
<div class="shrink-0 bg-bg-subtle border-r border-border w-14 py-0">
426+
<div class="shrink-0 bg-bg-subtle border-ie border-border w-14 py-0">
427427
<div v-for="n in 20" :key="n" class="px-3 h-6 flex items-center justify-end">
428428
<span class="skeleton w-4 h-3 rounded-sm" />
429429
</div>
@@ -455,7 +455,7 @@ useSeoMeta({
455455

456456
<!-- Error loading file -->
457457
<div v-else-if="filePath && fileStatus === 'error'" class="py-20 text-center" role="alert">
458-
<div class="i-carbon-warning-alt w-8 h-8 mx-auto text-fg-subtle mb-4" />
458+
<div class="i-carbon:warning-alt w-8 h-8 mx-auto text-fg-subtle mb-4" />
459459
<p class="text-fg-muted mb-2">{{ $t('code.failed_to_load') }}</p>
460460
<p class="text-fg-subtle text-sm mb-4">{{ $t('code.unavailable_hint') }}</p>
461461
<a
@@ -465,7 +465,7 @@ useSeoMeta({
465465
class="btn inline-flex items-center gap-2"
466466
>
467467
{{ $t('code.view_raw') }}
468-
<span class="i-carbon-launch w-4 h-4" />
468+
<span class="i-carbon:launch w-4 h-4" />
469469
</a>
470470
</div>
471471

0 commit comments

Comments
 (0)