From 5d622a9bf407146fe4ae8acdd54d8001b3261366 Mon Sep 17 00:00:00 2001 From: Ou Date: Sat, 19 Oct 2024 15:27:31 +0800 Subject: [PATCH] fix(ui): navbar fresh in mobile --- src/components/column/index.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/column/index.tsx b/src/components/column/index.tsx index 4525bbd..dd57aa0 100644 --- a/src/components/column/index.tsx +++ b/src/components/column/index.tsx @@ -14,14 +14,12 @@ export function Column({ id }: { id: ColumnID }) { }, [id, setCurrentColumnID]) useTitle(`NewsNow | ${metadata[id].name}`) - if (id === currentColumnID) { - return ( - <> -
- -
- - - ) - } + return ( + <> +
+ +
+ {id === currentColumnID && } + + ) }