Fix emoji picker z-index (tabs to z-[1]) and center avatar in mobile top bar

- Tabs z-index lowered to z-[1] so the emoji popover portal (z-50)
  always renders above them
- Mobile top bar avatar container uses flex centering instead of
  fixed width, ensuring the profile picture is visually centered
- Logo wrapped in flex-1 centered container for proper horizontal balance

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy
2026-02-16 17:31:54 -06:00
parent 5a8a9376ad
commit 0f922c79f4
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export function Feed() {
<ComposeBox compact />
{/* Tabs — stick below the mobile top bar (48px) on small screens, top-0 on desktop */}
<div className="flex border-b border-border sticky top-10 sidebar:top-0 bg-background/80 backdrop-blur-md z-[5]">
<div className="flex border-b border-border sticky top-10 sidebar:top-0 bg-background/80 backdrop-blur-md z-[1]">
<TabButton
label="Follows"
active={activeTab === 'follows'}
+6 -4
View File
@@ -11,9 +11,9 @@ export function MobileTopBar({ onAvatarClick }: MobileTopBarProps) {
const { user, metadata } = useCurrentUser();
return (
<header className="sticky top-0 z-20 flex items-center justify-between px-3 h-10 bg-background/80 backdrop-blur-md border-b border-border sidebar:hidden">
<header className="sticky top-0 z-20 flex items-center px-3 h-10 bg-background/80 backdrop-blur-md border-b border-border sidebar:hidden">
{/* Left: user avatar or login */}
<div className="w-8">
<div className="flex items-center justify-center w-7 shrink-0">
{user ? (
<button onClick={onAvatarClick} className="rounded-full focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 focus:ring-offset-background">
<Avatar className="size-7">
@@ -29,10 +29,12 @@ export function MobileTopBar({ onAvatarClick }: MobileTopBarProps) {
</div>
{/* Center: Mew logo */}
<MewLogo size={22} />
<div className="flex-1 flex items-center justify-center">
<MewLogo size={22} />
</div>
{/* Right: spacer for symmetry */}
<div className="w-8" />
<div className="w-7 shrink-0" />
</header>
);
}