fix(ui): navbar fresh in mobile

This commit is contained in:
Ou 2024-10-19 15:27:31 +08:00
parent 6a30dd01c6
commit 5d622a9bf4

View File

@ -14,14 +14,12 @@ export function Column({ id }: { id: ColumnID }) {
}, [id, setCurrentColumnID]) }, [id, setCurrentColumnID])
useTitle(`NewsNow | ${metadata[id].name}`) useTitle(`NewsNow | ${metadata[id].name}`)
if (id === currentColumnID) { return (
return ( <>
<> <div className="flex justify-center md:hidden mb-6">
<div className="flex justify-center md:hidden mb-6"> <NavBar />
<NavBar /> </div>
</div> {id === currentColumnID && <Dnd />}
<Dnd /> </>
</> )
)
}
} }