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])
useTitle(`NewsNow | ${metadata[id].name}`)
if (id === currentColumnID) {
return (
<>
<div className="flex justify-center md:hidden mb-6">
<NavBar />
</div>
<Dnd />
</>
)
}
return (
<>
<div className="flex justify-center md:hidden mb-6">
<NavBar />
</div>
{id === currentColumnID && <Dnd />}
</>
)
}