feat: update layout

This commit is contained in:
codytseng 2025-08-27 21:56:46 +08:00
parent f41536a793
commit 8b1c2ebe3f
30 changed files with 230 additions and 250 deletions

View file

@ -33,7 +33,12 @@ const MePage = forwardRef((_, ref) => {
if (!pubkey) {
return (
<PrimaryPageLayout ref={ref} pageName="home" titlebar={<MePageTitlebar />}>
<PrimaryPageLayout
ref={ref}
pageName="home"
titlebar={<MePageTitlebar />}
hideTitlebarBottomBorder
>
<div className="flex flex-col p-4 gap-4 overflow-auto">
<AccountManager />
</div>
@ -42,7 +47,12 @@ const MePage = forwardRef((_, ref) => {
}
return (
<PrimaryPageLayout ref={ref} pageName="home" titlebar={<MePageTitlebar />}>
<PrimaryPageLayout
ref={ref}
pageName="home"
titlebar={<MePageTitlebar />}
hideTitlebarBottomBorder
>
<div className="flex gap-4 items-center p-4">
<SimpleUserAvatar userId={pubkey} size="big" />
<div className="space-y-1 flex-1 w-0">

View file

@ -34,7 +34,11 @@ export default function FeedButton({ className }: { className?: string }) {
<PopoverTrigger asChild>
<FeedSwitcherTrigger className={className} />
</PopoverTrigger>
<PopoverContent side="bottom" className="w-96 p-4 max-h-[80vh] overflow-auto">
<PopoverContent
sideOffset={0}
side="bottom"
className="w-96 p-4 max-h-[80vh] overflow-auto scrollbar-hide"
>
<FeedSwitcher close={() => setOpen(false)} />
</PopoverContent>
</Popover>

View file

@ -24,7 +24,7 @@ const NoteListPage = forwardRef((_, ref) => {
useEffect(() => {
if (layoutRef.current) {
layoutRef.current.scrollToTop()
layoutRef.current.scrollToTop('instant')
}
}, [JSON.stringify(relayUrls), feedInfo])