Skip to content

Commit e6c41eb

Browse files
committed
style: make footer more compact on mobile
1 parent b4acb55 commit e6c41eb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

app/components/AppFooter.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ onUnmounted(() => {
9292
: 'mt-auto',
9393
]"
9494
>
95-
<div class="container py-6 flex flex-col gap-3 text-fg-subtle text-sm">
96-
<div class="flex flex-col sm:flex-row items-center justify-between gap-4">
97-
<p class="font-mono m-0">a better browser for the npm registry</p>
95+
<div class="container py-2 sm:py-6 flex flex-col gap-1 sm:gap-3 text-fg-subtle text-sm">
96+
<div class="flex flex-row items-center justify-between gap-2 sm:gap-4">
97+
<p class="font-mono m-0 hidden sm:block">a better browser for the npm registry</p>
98+
<!-- On mobile, show disclaimer here instead of tagline -->
99+
<p class="text-xs text-fg-muted m-0 sm:hidden">not affiliated with npm, Inc.</p>
98100
<div class="flex items-center gap-4 sm:gap-6">
99101
<a
100102
href="https://github.com/npmx-dev/npmx.dev"
@@ -113,7 +115,7 @@ onUnmounted(() => {
113115
</a>
114116
</div>
115117
</div>
116-
<p class="text-xs text-fg-muted text-center sm:text-left m-0">
118+
<p class="text-xs text-fg-muted text-center sm:text-left m-0 hidden sm:block">
117119
npm is a registered trademark of npm, Inc. This site is not affiliated with npm, Inc.
118120
</p>
119121
</div>

0 commit comments

Comments
 (0)