mobile stuff

This commit is contained in:
Aidan Bleser 2025-06-16 07:07:37 -05:00
parent 34b64420bf
commit 593257a3e9
3 changed files with 17 additions and 4 deletions

View file

@ -4,3 +4,6 @@ pnpm-lock.yaml
yarn.lock yarn.lock
bun.lock bun.lock
bun.lockb bun.lockb
# Convex formats this
convex.json

View file

@ -156,3 +156,13 @@
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }
/* For components that need horizontal scrolling */
.scrollbar-hide {
-ms-overflow-style: none; /* Internet Explorer and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari, and Opera */
}

View file

@ -72,7 +72,7 @@
<span class="text-sm font-medium">Keyboard Shortcuts</span> <span class="text-sm font-medium">Keyboard Shortcuts</span>
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="flex place-items-center justify-between"> <div class="flex place-items-center justify-between">
<span>Toggle Sidebar </span> <span class="text-muted-foreground text-sm">Toggle Sidebar </span>
<div> <div>
<Kbd>{isMac.current ? '⌘' : 'Ctrl'}</Kbd> <Kbd>{isMac.current ? '⌘' : 'Ctrl'}</Kbd>
@ -83,15 +83,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pl-12 md:col-start-2"> <div class="md:col-start-2 md:pl-12">
<div <div
class="bg-card text-muted-foreground flex w-fit place-items-center gap-2 rounded-lg p-1 text-sm" class="bg-card scrollbar-hide text-muted-foreground flex w-fit max-w-full place-items-center gap-2 overflow-x-auto rounded-lg p-1 text-sm"
> >
{#each navigation as tab (tab)} {#each navigation as tab (tab)}
<a <a
href={tab.href} href={tab.href}
use:active={{ activeForSubdirectories: false }} use:active={{ activeForSubdirectories: false }}
class="data-[active=true]:bg-background data-[active=true]:text-foreground rounded-md px-2 py-1" class="data-[active=true]:bg-background data-[active=true]:text-foreground rounded-md px-2 py-1 text-nowrap"
> >
{tab.title} {tab.title}
</a> </a>