mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
fix(ui): navbar fresh in mobile
This commit is contained in:
parent
6a30dd01c6
commit
5d622a9bf4
@ -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 />}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user