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

@ -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])