Skip to content

Commit 4d30ab6

Browse files
committed
fix: set explicit direction on various elements
1 parent a8bb9f9 commit 4d30ab6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

app/components/Readme.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function handleClick(event: MouseEvent) {
6262
<article
6363
class="readme prose prose-invert max-w-[70ch] lg:max-w-none px-1"
6464
v-html="html"
65+
dir="auto"
6566
:style="{
6667
'--i18n-note': '\'' + $t('package.readme.callout.note') + '\'',
6768
'--i18n-tip': '\'' + $t('package.readme.callout.tip') + '\'',

app/components/ReadmeTocDropdown.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ function handleKeydown(event: KeyboardEvent) {
198198
activeId === node.id ? 'text-fg font-medium' : 'text-fg-muted',
199199
highlightedIndex === getIndex(node.id) ? 'bg-bg-elevated' : 'hover:bg-bg-elevated',
200200
]"
201+
dir="auto"
201202
@click="select(node.id)"
202203
@mouseenter="highlightedIndex = getIndex(node.id)"
203204
>
@@ -214,6 +215,7 @@ function handleKeydown(event: KeyboardEvent) {
214215
activeId === child.id ? 'text-fg font-medium' : 'text-fg-subtle',
215216
highlightedIndex === getIndex(child.id) ? 'bg-bg-elevated' : 'hover:bg-bg-elevated',
216217
]"
218+
dir="auto"
217219
@click="select(child.id)"
218220
@mouseenter="highlightedIndex = getIndex(child.id)"
219221
>
@@ -233,6 +235,7 @@ function handleKeydown(event: KeyboardEvent) {
233235
? 'bg-bg-elevated'
234236
: 'hover:bg-bg-elevated',
235237
]"
238+
dir="auto"
236239
@click="select(grandchild.id)"
237240
@mouseenter="highlightedIndex = getIndex(grandchild.id)"
238241
>

app/components/Terminal/Install.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
104104
<span class="w-2.5 h-2.5 rounded-full bg-fg-subtle" />
105105
<span class="w-2.5 h-2.5 rounded-full bg-fg-subtle" />
106106
</div>
107-
<div class="px-3 pt-2 pb-3 sm:px-4 sm:pt-3 sm:pb-4 space-y-1 overflow-x-auto">
107+
<div class="px-3 pt-2 pb-3 sm:px-4 sm:pt-3 sm:pb-4 space-y-1 overflow-x-auto" dir="ltr">
108108
<!-- Install command - render all PM variants, CSS controls visibility -->
109109
<div
110110
v-for="pm in packageManagers"

0 commit comments

Comments
 (0)