Skip to content

Commit aa05c32

Browse files
authored
feat: add RTL support to PackageWeeklyDownloadStats (#352)
1 parent f5fc1b6 commit aa05c32

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

app/components/PackageWeeklyDownloadStats.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ const config = computed(() => {
178178
>
179179
{{ $t('package.downloads.title') }}
180180
<span
181-
class="i-carbon-link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
181+
class="i-carbon:link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
182182
aria-hidden="true"
183183
/>
184184
</a>
185185
</h2>
186186
<button
187187
type="button"
188188
@click="showModal = true"
189-
class="link-subtle font-mono text-sm inline-flex items-center gap-1.5 ml-auto shrink-0 self-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
189+
class="link-subtle font-mono text-sm inline-flex items-center gap-1.5 ms-auto shrink-0 self-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
190190
:title="$t('package.downloads.analyze')"
191191
>
192-
<span class="i-carbon-data-analytics w-4 h-4" aria-hidden="true" />
192+
<span class="i-carbon:data-analytics w-4 h-4" aria-hidden="true" />
193193
<span class="sr-only">{{ $t('package.downloads.analyze') }}</span>
194194
</button>
195195
</div>
@@ -201,17 +201,17 @@ const config = computed(() => {
201201
<!-- Skeleton matching sparkline layout: title row + chart with data label -->
202202
<div class="min-h-[100px]">
203203
<!-- Title row: date range (24px height) -->
204-
<div class="h-6 flex items-center pl-3">
204+
<div class="h-6 flex items-center ps-3">
205205
<span class="skeleton h-3 w-36" />
206206
</div>
207207
<!-- Chart area: data label left, sparkline right -->
208208
<div class="aspect-[500/80] flex items-center">
209209
<!-- Data label (covers ~42% width) -->
210-
<div class="w-[42%] flex items-center pl-0.5">
210+
<div class="w-[42%] flex items-center ps-0.5">
211211
<span class="skeleton h-7 w-24" />
212212
</div>
213213
<!-- Sparkline area (~58% width) -->
214-
<div class="flex-1 flex items-end gap-0.5 h-4/5 pr-3">
214+
<div class="flex-1 flex items-end gap-0.5 h-4/5 pe-3">
215215
<span
216216
v-for="i in 16"
217217
:key="i"
@@ -245,7 +245,7 @@ const config = computed(() => {
245245
class="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"
246246
:aria-label="$t('common.close')"
247247
>
248-
<span class="w-5 h-5 i-carbon-close" aria-hidden="true" />
248+
<span class="w-5 h-5 i-carbon:close" aria-hidden="true" />
249249
</button>
250250
</div>
251251
</template>

0 commit comments

Comments
 (0)