diff --git a/src/components/Feed.tsx b/src/components/Feed.tsx index 8151e673..df7d8f4c 100644 --- a/src/components/Feed.tsx +++ b/src/components/Feed.tsx @@ -101,7 +101,7 @@ export function Feed() { {/* Tabs (logged in) or CTA (logged out) */} {user ? ( -
+
) : ( -
+

Follow accounts you care about on Mew diff --git a/src/components/MobileTopBar.tsx b/src/components/MobileTopBar.tsx index e4238862..90d8cccd 100644 --- a/src/components/MobileTopBar.tsx +++ b/src/components/MobileTopBar.tsx @@ -10,7 +10,7 @@ export function MobileTopBar({ onAvatarClick }: MobileTopBarProps) { const { user, metadata } = useCurrentUser(); return ( -

+
{/* Left: user avatar (empty when signed out) */}
{user && ( diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 9d41a678..e498c42a 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -6,9 +6,8 @@ export function cn(...inputs: ClassValue[]) { } /** - * Sticky header offset class for pages inside MainLayout. - * On mobile the MobileTopBar is h-10 (40px) and sticky at top-0, - * so page-level sticky headers must sit below it. - * On desktop (sidebar breakpoint) the top bar is hidden, so top-0 applies. + * Sticky header class for pages inside MainLayout. + * On mobile, page headers scroll naturally with the content. + * On desktop (sidebar breakpoint) they stick to the top of the viewport. */ -export const STICKY_HEADER_CLASS = 'sticky top-10 sidebar:top-0'; +export const STICKY_HEADER_CLASS = 'sidebar:sticky sidebar:top-0'; diff --git a/src/pages/PostDetailPage.tsx b/src/pages/PostDetailPage.tsx index 611a18e0..4314d425 100644 --- a/src/pages/PostDetailPage.tsx +++ b/src/pages/PostDetailPage.tsx @@ -234,7 +234,7 @@ function PostDetailShell({ children }: { children: React.ReactNode }) { return (
{/* Header — matches Ditto: ← Post Details */} -
+