Skip to content

Commit 1c360af

Browse files
authored
fix: correct indents (#1842)
1 parent 13bf17a commit 1c360af

File tree

11 files changed

+16
-15
lines changed

11 files changed

+16
-15
lines changed

app/components/Compare/PackageSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ onClickOutside(containerRef, () => {
266266
<div
267267
v-if="isInputFocused && (navigableItems.length > 0 || isSearching)"
268268
ref="listRef"
269-
class="absolute top-full inset-x-0 mt-1 bg-bg-elevated border border-border rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
269+
class="absolute top-full inset-x-0 mt-1 px-0.5 bg-bg-elevated border border-border rounded-lg shadow-lg z-50 max-h-64 overflow-y-auto"
270270
>
271271
<!-- No dependency option (easter egg with James) -->
272272
<ButtonBase
@@ -297,7 +297,7 @@ onClickOutside(containerRef, () => {
297297
v-for="(result, index) in filteredResults"
298298
:key="result.name"
299299
data-navigable
300-
class="block w-full text-start"
300+
class="block w-full text-start my-0.5"
301301
:class="highlightedIndex === index + resultIndexOffset ? '!bg-accent/15' : ''"
302302
@mouseenter="highlightedIndex = index + resultIndexOffset"
303303
@click="addPackage(result.name)"

app/components/Package/ListToolbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function getSortKeyLabelKey(key: SortKey): string {
179179
<button
180180
v-if="!searchContext || currentSort.key !== 'relevance'"
181181
type="button"
182-
class="p-1.5 rounded border border-border bg-bg-subtle text-fg-muted hover:text-fg hover:border-border-hover transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
182+
class="p-2.5 rounded-md border border-border bg-bg-subtle text-fg-muted hover:text-fg hover:border-border-hover transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-2 focus-visible:ring-offset-bg"
183183
:aria-label="$t('filters.sort.toggle_direction')"
184184
:title="
185185
currentSort.direction === 'asc'

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const config = computed<VueUiSparklineConfig>(() => {
300300
<span v-else-if="isLoadingWeeklyDownloads" class="min-w-6 min-h-6 -m-1 p-1" />
301301
</template>
302302

303-
<div class="w-full overflow-hidden h-[76px] motion-safe:h-[calc(92px+0.75rem)]">
303+
<div class="w-full overflow-hidden h-[76px]">
304304
<template v-if="isLoadingWeeklyDownloads || hasWeeklyDownloads">
305305
<ClientOnly>
306306
<VueUiSparkline class="w-full max-w-xs" :dataset :config>

app/components/Terminal/Install.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const copyDevInstallCommand = () =>
216216
>
217217
<NuxtLink
218218
:to="packageRoute(typesPackageName!)"
219-
class="text-fg-subtle hover:text-fg-muted text-xs transition-colors focus-visible:outline-accent/70 rounded select-none"
219+
class="text-fg-subtle hover:text-fg-muted text-xs transition-colors focus-visible:outline-accent/70 rounded select-none -m-1 p-1"
220220
:title="$t('package.get_started.view_types', { package: typesPackageName })"
221221
>
222222
<span class="i-lucide:arrow-right rtl-flip w-3 h-3 align-middle" aria-hidden="true" />

app/components/ViewModeToggle.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const viewMode = defineModel<ViewMode>({ default: 'cards' })
66

77
<template>
88
<div
9-
class="inline-flex rounded-md border border-border p-0.5 bg-bg-muted"
9+
class="flex rounded-md border border-border p-0.5 bg-bg-muted"
1010
role="group"
1111
:aria-label="$t('filters.view_mode.label')"
1212
>
1313
<button
1414
type="button"
15-
class="inline-flex items-center px-2.5 py-1.5 text-sm font-medium rounded-sm border transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
15+
class="flex items-center px-2.5 py-2 text-sm font-medium rounded-sm border transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
1616
:class="
1717
viewMode === 'cards'
1818
? 'bg-bg-subtle text-fg border-fg-subtle'
@@ -22,12 +22,12 @@ const viewMode = defineModel<ViewMode>({ default: 'cards' })
2222
:aria-label="$t('filters.view_mode.cards')"
2323
@click="viewMode = 'cards'"
2424
>
25-
<span class="i-lucide:rows-2 w-4 h-4" aria-hidden="true" />
25+
<span class="block i-lucide:rows-2 w-4 h-4" aria-hidden="true" />
2626
<span class="sr-only">{{ $t('filters.view_mode.cards') }}</span>
2727
</button>
2828
<button
2929
type="button"
30-
class="inline-flex items-center px-2.5 py-1.5 text-sm font-medium rounded-sm border transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
30+
class="flex items-center px-2.5 py-2 text-sm font-medium rounded-sm border transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
3131
:class="
3232
viewMode === 'table'
3333
? 'bg-bg-subtle text-fg border-fg-subtle'
@@ -37,7 +37,7 @@ const viewMode = defineModel<ViewMode>({ default: 'cards' })
3737
:aria-label="$t('filters.view_mode.table')"
3838
@click="viewMode = 'table'"
3939
>
40-
<span class="i-lucide:table w-4 h-4" aria-hidden="true" />
40+
<span class="block i-lucide:table w-4 h-4" aria-hidden="true" />
4141
<span class="sr-only">{{ $t('filters.view_mode.table') }}</span>
4242
</button>
4343
</div>

app/pages/accessibility.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const canGoBack = useCanGoBack()
2727
</h1>
2828
<button
2929
type="button"
30-
class="cursor-pointer inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded shrink-0"
30+
class="cursor-pointer inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded shrink-0"
3131
@click="router.back()"
3232
v-if="canGoBack"
3333
>

app/pages/compare.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ useSeoMeta({
170170
</h1>
171171
<button
172172
type="button"
173-
class="cursor-pointer inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
173+
class="cursor-pointer inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
174174
@click="router.back()"
175175
v-if="canGoBack"
176176
>

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ const showSkeleton = shallowRef(false)
895895
:aria-label="$t('common.scroll_to_top')"
896896
@click="scrollToTop"
897897
classicon="i-lucide:arrow-up"
898+
class="sm:p-2.75"
898899
/>
899900
</ButtonGroup>
900901

app/pages/privacy.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { locale } = useI18n()
2929
</h1>
3030
<button
3131
type="button"
32-
class="cursor-pointer inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
32+
class="cursor-pointer inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
3333
@click="router.back()"
3434
v-if="canGoBack"
3535
>

app/pages/recharging.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const icons = [
7676
</h1>
7777
<button
7878
type="button"
79-
class="cursor-pointer inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
79+
class="cursor-pointer inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
8080
@click="router.back()"
8181
v-if="canGoBack"
8282
>

0 commit comments

Comments
 (0)