From f4b2458417c13e8bcb476ed5c0ad802c541a799d Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Tue, 29 Aug 2023 08:24:18 +0700 Subject: [PATCH] ui consistent --- src/app/chats/components/item.tsx | 8 ++++--- src/app/chats/components/modal.tsx | 2 +- src/app/chats/components/unknowns.tsx | 2 +- src/shared/composer/modal.tsx | 2 +- src/shared/layouts/settings.tsx | 5 ----- src/shared/navigation.tsx | 30 ++++++++++++++++----------- 6 files changed, 26 insertions(+), 23 deletions(-) diff --git a/src/app/chats/components/item.tsx b/src/app/chats/components/item.tsx index 12b786dd..7a2ca27c 100644 --- a/src/app/chats/components/item.tsx +++ b/src/app/chats/components/item.tsx @@ -24,15 +24,17 @@ export function ChatsListItem({ pubkey }: { pubkey: string }) { preventScrollReset={true} className={({ isActive }) => twMerge( - 'inline-flex h-10 items-center gap-2.5 rounded-md px-2', - isActive ? 'bg-white/10 text-white backdrop-blur-xl' : 'text-white/80' + 'flex h-10 items-center gap-2.5 rounded-r-lg border-l-2 pl-4 pr-2', + isActive + ? 'border-fuchsia-500 bg-white/5 text-white' + : 'border-transparent text-white/80' ) } > {pubkey}
diff --git a/src/app/chats/components/modal.tsx b/src/app/chats/components/modal.tsx index d077de30..44f0c0e4 100644 --- a/src/app/chats/components/modal.tsx +++ b/src/app/chats/components/modal.tsx @@ -24,7 +24,7 @@ export function NewMessageModal() {
-
- -
diff --git a/src/shared/navigation.tsx b/src/shared/navigation.tsx index f8230311..a386707c 100644 --- a/src/shared/navigation.tsx +++ b/src/shared/navigation.tsx @@ -17,18 +17,20 @@ export function Navigation() {
-
+
twMerge( - 'flex h-10 items-center gap-2.5 rounded-md px-2', - isActive ? 'bg-white/5 text-white' : 'text-white/80' + 'flex h-10 items-center gap-2.5 rounded-r-lg border-l-2 pl-4 pr-2', + isActive + ? 'border-fuchsia-500 bg-white/5 text-white' + : 'border-transparent text-white/80' ) } > - + Space @@ -38,12 +40,14 @@ export function Navigation() { preventScrollReset={true} className={({ isActive }) => twMerge( - 'flex h-10 items-center gap-2.5 rounded-md px-2', - isActive ? 'bg-white/5 text-white' : 'text-white/80' + 'flex h-10 items-center gap-2.5 rounded-r-lg border-l-2 pl-4 pr-2', + isActive + ? 'border-fuchsia-500 bg-white/5 text-white' + : 'border-transparent text-white/80' ) } > - + Notifications @@ -53,21 +57,23 @@ export function Navigation() { preventScrollReset={true} className={({ isActive }) => twMerge( - 'flex h-10 items-center gap-2.5 rounded-md px-2', - isActive ? 'bg-white/5 text-white' : 'text-white/80' + 'flex h-10 items-center gap-2.5 rounded-r-lg border-l-2 pl-4 pr-2', + isActive + ? 'border-fuchsia-500 bg-white/5 text-white' + : 'border-transparent text-white/80' ) } > - + Settings
-
+
-