Skip to content

Commit c380293

Browse files
committed
chore: list design tweaks
1 parent d3e2664 commit c380293

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

typescript-sdk/apps/dojo/src/components/demo-list/demo-list.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export function DemoList({ demos, selectedDemo, onSelect, llmSelector }: DemoLis
2323
</h2>
2424
{llmSelector && <div className="mt-2">{llmSelector}</div>}
2525
</div>
26-
<ul className="px-2 space-y-0.5">
26+
<ul className="px-2 space-y-1">
2727
{demos.map((demo) => (
2828
<li key={demo.id}>
2929
<button
3030
className={cn(
31-
"w-full text-left py-2 px-3 rounded-md hover:bg-accent/50 transition-colors",
31+
"w-full text-left py-2 px-3 rounded-sm hover:bg-white/50 transition-colors",
3232
"flex flex-col gap-0.5",
33-
selectedDemo === demo.id && "bg-accent",
33+
selectedDemo === demo.id && "bg-white/70",
3434
)}
3535
onClick={() => onSelect(demo.id)}
3636
>
@@ -43,11 +43,10 @@ export function DemoList({ demos, selectedDemo, onSelect, llmSelector }: DemoLis
4343
{demo.tags.map((tag) => (
4444
<Badge
4545
key={tag}
46-
variant={selectedDemo === demo.id ? "default" : "secondary"}
4746
className={cn(
48-
"text-xs px-1.5 py-0.5 rounded-full",
47+
"text-xs px-1.5 py-0.5 rounded-full bg-white/65 text-primary",
4948
selectedDemo === demo.id &&
50-
"bg-primary text-primary-foreground border-transparent",
49+
"bg-primary text-primary-foreground border-transparent",
5150
)}
5251
>
5352
{tag}

typescript-sdk/apps/dojo/src/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function Sidebar({ isMobile, onMobileClose }: SidebarProps) {
106106
${isMobile ? 'w-80 shadow-xl bg-white z-99' : 'bg-white/50 w-74 min-w-[296px] flex-shrink-0 rounded-lg overflow-hidden'}
107107
`}>
108108
{/* Sidebar Header */}
109-
<div className="p-4 border-b">
109+
<div className="p-4">
110110
<div className="flex items-center justify-between ml-1">
111111
<div className="flex items-start flex-col">
112112
<h1 className={`text-lg font-light ${isDarkTheme ? "text-white" : "text-gray-900"}`}>

0 commit comments

Comments
 (0)