The VS Code of video editing, built for agents.
TypeScript
Enhance dashboard components with improved styling and layout
konstantin-paulusa8329f02747a
diff --git a/apps/web/src/components/dashboard/projects-view.tsx b/apps/web/src/components/dashboard/projects-view.tsxindex 62e0c019..6c5cfb72 100644--- a/apps/web/src/components/dashboard/projects-view.tsx+++ b/apps/web/src/components/dashboard/projects-view.tsx@@ -195,6 +195,7 @@ export function DashboardProjectsView() {placeholder="Search in projects"><DashboardViewSection+ class="pb-4"title="Recent projects"controls={<Select<(typeof SORT_OPTIONS)[number]>diff --git a/apps/web/src/components/dashboard/search-bar.tsx b/apps/web/src/components/dashboard/search-bar.tsxindex a03bda9d..5a8c2967 100644--- a/apps/web/src/components/dashboard/search-bar.tsx+++ b/apps/web/src/components/dashboard/search-bar.tsx@@ -22,7 +22,7 @@ type DashboardSearchPanelProps = {export function DashboardSearchBar(props: DashboardSearchBarProps) {return (- <div class="flex h-11 items-center border-b border-border px-4">+ <div class="flex h-11 items-center border-b border-border-strong px-4"><TextField class="relative flex h-7 w-full items-center gap-0"><div class="grid size-7 place-items-center overflow-clip text-muted-foreground"><Icon name="search" class="size-6" />diff --git a/apps/web/src/components/dashboard/shared.tsx b/apps/web/src/components/dashboard/shared.tsxindex a442b0ef..e86d3ae5 100644--- a/apps/web/src/components/dashboard/shared.tsx+++ b/apps/web/src/components/dashboard/shared.tsx@@ -417,7 +417,7 @@ export function DashboardCardButton(props: DashboardCardButtonProps) {onClick={props.onClick}onKeyDown={handleKeyDown}class={cx(- "flex w-62 shrink-0 flex-col gap-3 rounded-xl p-2 text-left outline-none transition-colors hover:bg-accent focus-ring group",+ "flex w-62 shrink-0 flex-col gap-3 rounded-xl p-2 text-left outline-none transition-colors hover:bg-accent/50 focus-ring group",props.active && "bg-muted hover:bg-muted ring-1 ring-inset ring-ring",props.class,)}@@ -436,7 +436,7 @@ export function DashboardCardPreview(props: DashboardCardPreviewProps) {return (<divclass={cx(- "bg-canvas relative aspect-video w-full overflow-hidden rounded-md border border-border",+ "bg-canvas relative aspect-video w-full overflow-hidden rounded-md border border-border-strong",props.class,)}>@@ -473,11 +473,12 @@ type DashboardViewSectionProps = {title: string;controls: JSX.Element;children: JSX.Element;+ class?: string;};export function DashboardViewSection(props: DashboardViewSectionProps) {return (- <div class="flex min-h-0 flex-1 flex-col gap-4 pt-4">+ <div class={cx("flex min-h-0 flex-1 flex-col gap-4 pt-4", props.class)}><div class="flex h-10 items-end gap-6 px-6"><h1 class="min-w-0 flex-1 text-lg leading-7 font-450 text-foreground">{props.title}