From ab58cb1718423eb315fc040515bcb2d0b86d1918 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 15 Jul 2024 00:00:49 +0200 Subject: [PATCH] ui fix --- .../shadcn/accordion/accordion-trigger.svelte | 2 +- .../dropdown-menu-content.svelte | 2 +- .../dropdown-menu-separator.svelte | 2 +- .../dropdown-menu-sub-content.svelte | 2 +- src/lib/components/shadcn/sheet/index.ts | 18 +- .../shadcn/sheet/sheet-content.svelte | 3 +- src/routes/+layout.svelte | 170 +++++++++++++----- 7 files changed, 140 insertions(+), 59 deletions(-) diff --git a/src/lib/components/shadcn/accordion/accordion-trigger.svelte b/src/lib/components/shadcn/accordion/accordion-trigger.svelte index 667f4ea7..9450d2e0 100644 --- a/src/lib/components/shadcn/accordion/accordion-trigger.svelte +++ b/src/lib/components/shadcn/accordion/accordion-trigger.svelte @@ -21,6 +21,6 @@ on:click > - + \ No newline at end of file diff --git a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-content.svelte b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-content.svelte index 4e0e5373..ab896b05 100644 --- a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-content.svelte +++ b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-content.svelte @@ -17,7 +17,7 @@ {transitionConfig} {sideOffset} class={cn( - "z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md focus:outline-none", + "z-50 min-w-[8rem] rounded-md border border-gray-800 bg-[#09090B] p-1 text-white shadow-md focus:outline-none", className )} {...$$restProps} diff --git a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-separator.svelte b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-separator.svelte index 5d88ec33..77b18c8a 100644 --- a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-separator.svelte +++ b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-separator.svelte @@ -9,6 +9,6 @@ \ No newline at end of file diff --git a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte index 9806590a..79498863 100644 --- a/src/lib/components/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +++ b/src/lib/components/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte @@ -18,7 +18,7 @@ {transition} {transitionConfig} class={cn( - "z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-lg focus:outline-none", + "z-50 min-w-[8rem] rounded-md border bg-[#09090B] p-1 text-white shadow-lg focus:outline-none", className )} {...$$restProps} diff --git a/src/lib/components/shadcn/sheet/index.ts b/src/lib/components/shadcn/sheet/index.ts index 3536f650..ef947de3 100644 --- a/src/lib/components/shadcn/sheet/index.ts +++ b/src/lib/components/shadcn/sheet/index.ts @@ -43,7 +43,7 @@ export const sheetVariants = tv({ side: { top: "inset-x-0 top-0 border-b", bottom: "inset-x-0 bottom-0 border-t", - left: "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", + left: "inset-y-0 left-0 h-full w-3/4 sm:max-w-sm", right: "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", }, }, @@ -56,48 +56,48 @@ export const sheetTransitions = { top: { in: { y: "-100%", - duration: 500, + duration: 100, opacity: 1, }, out: { y: "-100%", - duration: 300, + duration: 100, opacity: 1, }, }, bottom: { in: { y: "100%", - duration: 500, + duration: 100, opacity: 1, }, out: { y: "100%", - duration: 300, + duration: 100, opacity: 1, }, }, left: { in: { x: "-100%", - duration: 500, + duration: 100, opacity: 1, }, out: { x: "-100%", - duration: 300, + duration: 100, opacity: 1, }, }, right: { in: { x: "100%", - duration: 500, + duration: 100, opacity: 1, }, out: { x: "100%", - duration: 300, + duration: 100, opacity: 1, }, }, diff --git a/src/lib/components/shadcn/sheet/sheet-content.svelte b/src/lib/components/shadcn/sheet/sheet-content.svelte index 34b2897b..aa75e84d 100644 --- a/src/lib/components/shadcn/sheet/sheet-content.svelte +++ b/src/lib/components/shadcn/sheet/sheet-content.svelte @@ -37,8 +37,7 @@ {...$$restProps} > - Close diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 39394b61..24eeb75e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -53,6 +53,7 @@ import Box from "lucide-svelte/icons/box"; import Boxes from "lucide-svelte/icons/boxes"; import Newspaper from "lucide-svelte/icons/newspaper"; + import MessageCircle from "lucide-svelte/icons/message-circle"; export let data; @@ -398,13 +399,13 @@ $: {
-