From 96e80cff7b5c97c17e2e7b0b38cd303fe2a16bcb Mon Sep 17 00:00:00 2001 From: Ou Date: Sat, 19 Oct 2024 14:42:23 +0800 Subject: [PATCH] chore(ui): clean up --- src/components/column/dnd.tsx | 3 +++ src/components/column/index.tsx | 6 ++---- src/components/common/toast.tsx | 6 +++--- src/components/header/menu.tsx | 4 ++-- src/routes/__root.tsx | 7 ++++--- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/column/dnd.tsx b/src/components/column/dnd.tsx index f026b18..2968c86 100644 --- a/src/components/column/dnd.tsx +++ b/src/components/column/dnd.tsx @@ -51,6 +51,9 @@ export function Dnd() { {items.map(id => ( -
+
-
- -
+ ) } diff --git a/src/components/common/toast.tsx b/src/components/common/toast.tsx index bb7f905..063e759 100644 --- a/src/components/common/toast.tsx +++ b/src/components/common/toast.tsx @@ -9,7 +9,7 @@ export function Toast() { unstyled: true, classNames: { toast: clsx( - "flex gap-1 p-1 rounded-xl backdrop-blur-5 items-center bg-op-40! w-full", + "flex gap-1 p-1 rounded-xl backdrop-blur-5 items-center bg-op-70! w-full", "bg-blue", "data-[type=error]:(bg-red)", "data-[type=success]:(bg-green)", @@ -17,10 +17,10 @@ export function Toast() { "data-[type=warning]:(bg-yellow)", ), icon: "text-white ml-1 dark:text-dark-600 text-op-80!", - content: "bg-base bg-op-70! p-2 rounded-md color-base w-full backdrop-blur-md", + content: "bg-base bg-op-70! p-2 rounded-lg color-base w-full backdrop-blur-md", title: "font-normal text-base", description: "color-base text-op-80! text-sm", - actionButton: "bg-base bg-op-70! rounded-md py-2 w-4em backdrop-blur-md hover:(bg-base bg-op-60!)", + actionButton: "bg-base bg-op-70! rounded-lg py-2 w-4em backdrop-blur-md hover:(bg-base bg-op-60!)", closeButton: "bg-base bg-op-50! border-0 hover:(bg-base bg-op-70!)", }, }} diff --git a/src/components/header/menu.tsx b/src/components/header/menu.tsx index 869715b..4344fcc 100644 --- a/src/components/header/menu.tsx +++ b/src/components/header/menu.tsx @@ -50,7 +50,7 @@ export function Menu() { id="dropdown-menu" className={clsx([ "absolute top-2rem right-0 z-99 w-200px", - "bg-primary p-1 backdrop-blur-5 bg-op-40! rounded-xl", + "bg-primary p-1 backdrop-blur-5 bg-op-70! rounded-xl", ])} initial={{ scale: 0.9, @@ -59,7 +59,7 @@ export function Menu() { scale: 1, }} > -
    +
      {enabledLogin && !loggedIn && (
    1. diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index d2a121e..4e83882 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -54,9 +54,10 @@ function RootComponent() {