From 335d83365521728181248b13a55386a10ae41ef0 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Fri, 17 Oct 2025 15:22:08 -0500 Subject: wip: desktop work --- packages/ui/src/components/list.tsx | 2 ++ packages/ui/src/components/tooltip.tsx | 4 ++-- packages/ui/src/styles/tailwind/index.css | 9 +++++++++ packages/ui/src/styles/theme.css | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) (limited to 'packages/ui') diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index 9704e4554..8bfbbdc98 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -9,6 +9,7 @@ export interface ListProps { key: (x: T) => string current?: T onSelect?: (value: T | undefined) => void + onHover?: (value: T | undefined) => void class?: ComponentProps<"div">["class"] } @@ -45,6 +46,7 @@ export function List(props: ListProps) { createEffect(() => { if (store.mouseActive || props.data.length === 0) return const index = props.data.findIndex((x) => props.key(x) === list.active()) + props.onHover?.(props.data[index]) if (index === 0) { virtualizer()?.scrollTo(0) return diff --git a/packages/ui/src/components/tooltip.tsx b/packages/ui/src/components/tooltip.tsx index b975099fb..14e433e21 100644 --- a/packages/ui/src/components/tooltip.tsx +++ b/packages/ui/src/components/tooltip.tsx @@ -30,11 +30,11 @@ export function Tooltip(props: TooltipProps) { return ( - + {c()} - + {typeof others.value === "function" ? others.value() : others.value} {/* */} diff --git a/packages/ui/src/styles/tailwind/index.css b/packages/ui/src/styles/tailwind/index.css index 9faa3f970..e8e9641b4 100644 --- a/packages/ui/src/styles/tailwind/index.css +++ b/packages/ui/src/styles/tailwind/index.css @@ -32,6 +32,15 @@ --tracking-tight: var(--letter-spacing-tight); --tracking-tightest: var(--letter-spacing-tightest); + --radius-xs: 0.125rem; + --radius-sm: 0.25rem; + --radius-md: 0.375rem; + --radius-lg: 0.5rem; + --radius-xl: 0.75rem; + --radius-2xl: 1rem; + --radius-3xl: 1.5rem; + --radius-4xl: 2rem; + --shadow-xs: var(--shadow-xs); --shadow-md: var(--shadow-md); --shadow-xs-border-selected: var(--shadow-xs-border-selected); diff --git a/packages/ui/src/styles/theme.css b/packages/ui/src/styles/theme.css index ccfebd4c2..5358f380d 100644 --- a/packages/ui/src/styles/theme.css +++ b/packages/ui/src/styles/theme.css @@ -277,7 +277,7 @@ --markdown-code-block: #1a1a1a; --border-color: #ffffff; - .dark { + @media (prefers-color-scheme: dark) { /* OC-1-Dark */ color-scheme: dark; --background-base: var(--smoke-dark-1); -- cgit v1.2.3