From 4605f5cb06fd3e3fe934ed137a3ad314a568869e Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Sat, 21 Feb 2026 13:19:34 -0800 Subject: [PATCH] Fix mobile UI/UX issues --- src/app/(main)/MobileNav.tsx | 12 +++++++++--- .../websites/[websiteId]/settings/SharesTable.tsx | 12 +++++------- src/components/input/UserButton.tsx | 5 +++-- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/app/(main)/MobileNav.tsx b/src/app/(main)/MobileNav.tsx index ff7fe73a5..f731cb08a 100644 --- a/src/app/(main)/MobileNav.tsx +++ b/src/app/(main)/MobileNav.tsx @@ -49,7 +49,13 @@ export function MobileNav() { {({ close }) => { return ( - + {isMain && links.map(link => { return ( @@ -63,8 +69,8 @@ export function MobileNav() { {websiteId && } {isAdmin && } {isSettings && } - - + + ); diff --git a/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx b/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx index 933fb65ff..2d1c87f15 100644 --- a/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx +++ b/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx @@ -18,7 +18,7 @@ export function SharesTable(props: DataTableProps) { }; return ( - + {({ name }: any) => name} @@ -27,16 +27,14 @@ export function SharesTable(props: DataTableProps) { const url = getUrl(slug); return ( - {url} + {isMobile ? slug : url} ); }} - {!isMobile && ( - - {(row: any) => } - - )} + + {(row: any) => } + {({ id, slug }: any) => { return ( diff --git a/src/components/input/UserButton.tsx b/src/components/input/UserButton.tsx index 8804f8e5d..91080f344 100644 --- a/src/components/input/UserButton.tsx +++ b/src/components/input/UserButton.tsx @@ -33,9 +33,10 @@ import { languages } from '@/lib/lang'; export interface UserButtonProps { showText?: boolean; + onClose?: () => void; } -export function UserButton({ showText = true }: UserButtonProps) { +export function UserButton({ showText = true, onClose }: UserButtonProps) { const { user } = useLoginQuery(); const { cloudMode } = useConfig(); const { t, labels } = useMessages(); @@ -111,7 +112,7 @@ export function UserButton({ showText = true }: UserButtonProps) { - +