atproto explorer pdsls.dev
atproto tool

adjust navbar size on mobile

juli.ee 110e2301 e1e994fb

verified
Changed files
+4 -4
src
components
+4 -4
src/components/navbar.tsx
···
});
return (
-
<nav class="flex w-full flex-col px-2 wrap-anywhere">
+
<nav class="flex w-full flex-col px-2 text-sm wrap-anywhere sm:text-base">
<div class="relative flex items-center justify-between gap-1">
-
<div class="flex min-h-[1.5rem] basis-full items-center gap-2">
+
<div class="flex min-h-[1.25rem] basis-full items-center gap-2 sm:min-h-[1.5rem]">
<Tooltip text="PDS">
<span class="iconify lucide--hard-drive shrink-0"></span>
</Tooltip>
···
<MenuProvider>
<DropdownMenu
icon="lucide--copy"
-
buttonClass="rounded p-1"
+
buttonClass="rounded p-0.5 sm:p-1 text-base"
menuClass="top-6 p-2 text-xs"
>
<Show when={pds()}>
···
</div>
<Tooltip text={showHandle() ? "Show DID" : "Show handle"}>
<button
-
class="flex items-center rounded p-1 hover:bg-neutral-200 active:bg-neutral-300 dark:hover:bg-neutral-700 dark:active:bg-neutral-600"
+
class="flex items-center rounded p-0.5 text-base hover:bg-neutral-200 active:bg-neutral-300 sm:p-1 dark:hover:bg-neutral-700 dark:active:bg-neutral-600"
onclick={() => {
localStorage.showHandle = !showHandle();
setShowHandle(!showHandle());