Skip to content

Commit eae3e6f

Browse files
committed
compact roleplay persona grid
1 parent 825e6c2 commit eae3e6f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/roleplay/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export default async function RoleplayPage() {
4141
</Link>
4242
</div>
4343

44-
<div className="grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
44+
<div className="grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_300px] xl:grid-cols-[minmax(0,1fr)_320px]">
4545
<section className="min-w-0">
4646
<div className="mb-3 flex items-baseline gap-2">
4747
<h2 className="text-sm font-semibold">Practice prospects</h2>
4848
<span className="text-xs text-muted-foreground">
4949
{personas.length} {personas.length === 1 ? 'persona' : 'personas'}
5050
</span>
5151
</div>
52-
<div className="grid gap-4">
52+
<div className="grid gap-4 sm:grid-cols-2">
5353
{personas.map((persona) => (
5454
<PersonaCard
5555
key={persona.id}
@@ -69,7 +69,7 @@ export default async function RoleplayPage() {
6969
</div>
7070
</section>
7171

72-
<aside className="flex h-[320px] flex-col overflow-hidden rounded-xl border border-border bg-card lg:mt-8">
72+
<aside className="flex h-[240px] flex-col overflow-hidden rounded-xl border border-border bg-card lg:mt-8">
7373
<div className="flex items-center gap-2 border-b border-border px-4 py-3.5">
7474
<History className="h-4 w-4 text-primary" />
7575
<h2 className="text-sm font-semibold">Recent practice</h2>

src/components/personas/persona-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function PersonaCard({
2626
}
2727

2828
return (
29-
<article className="relative flex h-[320px] w-full min-w-0 flex-col overflow-hidden rounded-xl border border-border bg-card p-4">
29+
<article className="relative flex h-[240px] w-full min-w-0 flex-col overflow-hidden rounded-xl border border-border bg-card p-4">
3030
<div className="min-h-0 flex-1 overflow-hidden">
3131
<div className="flex items-start gap-3">
3232
<div className="min-w-0 flex-1">
@@ -66,7 +66,7 @@ export function PersonaCard({
6666
</div>
6767
)}
6868
</div>
69-
<div className="mt-4 min-w-0 space-y-2.5 overflow-hidden text-xs leading-5 text-muted-foreground">
69+
<div className="mt-3 min-w-0 space-y-1.5 overflow-hidden text-xs leading-5 text-muted-foreground">
7070
<p className="line-clamp-1 break-words">
7171
<span className="font-medium text-foreground/80">Likely objections: </span>
7272
{persona.personality_config.keyObjections.join(', ')}

0 commit comments

Comments
 (0)