Skip to content

Commit 2f6ebb0

Browse files
committed
fix(mobile-nav): keep bar above backdrop; tighten row spacing
1 parent e1ce416 commit 2f6ebb0

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/components/Header/MobileBottomBar.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function handleThemeClick() {
2222
<template>
2323
<Teleport to="body">
2424
<div
25-
class="sm:hidden fixed inset-x-0 bottom-0 z-40 bg-bg border-t border-border flex items-center gap-2 px-3 h-14"
25+
class="sm:hidden fixed inset-x-0 bottom-0 z-50 bg-bg border-t border-border flex items-center gap-2 px-3 h-14"
2626
:style="{ '--mobile-bar-height': '3.5rem' }"
2727
>
2828
<NuxtLink

app/components/Header/MobileMenuDocsView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const docsLinks = [{ label: 'Docs home', href: NPMX_DOCS_SITE, external: true }]
2222
:href="link.href"
2323
target="_blank"
2424
rel="noopener noreferrer"
25-
class="flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
25+
class="flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
2626
@click="emit('close')"
2727
>
2828
<span class="i-lucide:file-text w-5 h-5 text-fg-muted" aria-hidden="true" />
@@ -39,7 +39,7 @@ const docsLinks = [{ label: 'Docs home', href: NPMX_DOCS_SITE, external: true }]
3939
<div class="border-t border-border p-3">
4040
<button
4141
type="button"
42-
class="w-full flex items-center gap-2 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
42+
class="w-full flex items-center gap-2 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
4343
:aria-label="$t('nav.back_to_main_menu')"
4444
@click="emit('back')"
4545
>

app/components/Header/MobileMenuRootView.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { user: atprotoUser } = useAtproto()
2828
<button
2929
v-if="isConnected && npmUser"
3030
type="button"
31-
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
31+
class="w-full flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
3232
@click="emit('showConnector')"
3333
>
3434
<img
@@ -49,7 +49,7 @@ const { user: atprotoUser } = useAtproto()
4949
<button
5050
v-if="atprotoUser"
5151
type="button"
52-
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
52+
class="w-full flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
5353
@click="emit('showAuth')"
5454
>
5555
<img
@@ -69,7 +69,7 @@ const { user: atprotoUser } = useAtproto()
6969
<button
7070
v-else
7171
type="button"
72-
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
72+
class="w-full flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
7373
@click="emit('showAuth')"
7474
>
7575
<span class="w-5 h-5 rounded-full bg-bg-muted flex items-center justify-center">
@@ -85,7 +85,7 @@ const { user: atprotoUser } = useAtproto()
8585
{{ $t('command_palette.title') }}
8686
</span>
8787
<ButtonBase
88-
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
88+
class="w-full flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
8989
:aria-label="$t('shortcuts.command_palette')"
9090
@click="emit('openCommandPalette')"
9191
>
@@ -103,7 +103,7 @@ const { user: atprotoUser } = useAtproto()
103103
<div class="px-2 py-2">
104104
<button
105105
type="button"
106-
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
106+
class="w-full flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
107107
:aria-label="$t('nav.docs_label')"
108108
@click="emit('enterDocs')"
109109
>
@@ -137,7 +137,7 @@ const { user: atprotoUser } = useAtproto()
137137
:to="link.to"
138138
:href="link.href"
139139
:target="link.target"
140-
class="flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
140+
class="flex items-center gap-3 px-3 py-2 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
141141
@click="emit('close')"
142142
>
143143
<span :class="link.iconClass" class="w-5 h-5 text-fg-muted" aria-hidden="true" />

0 commit comments

Comments
 (0)