fix(memory): stats row uses 3-column grid on mobile too

Same density issue as Goals (3f062a8), same fix. Three single-stat
cards (Entities / Relations / Types) used grid-cols-1 sm:grid-cols-3,
stacking full-width on mobile and eating ~400px before the user saw
any actual recent-additions or activity content. Caught live on
cockpitapp.vercel.app/memory at 414px in this iteration's audit.

Drop to grid-cols-3 everywhere with gap-2 on mobile, gap-4 sm+. Short
labels (Entities / Relations / Types) and short values (1,324 / 11 /
5) fit comfortably in ~130px-wide cards at 414px. First "Recently
Added" card now near the fold instead of below it.

No layout change for desktop (already 3 cols).
This commit is contained in:
g-but committed 2026-05-31 04:45:47 +02:00
1 parent 3f062a8a57
commit 1baa42156e
1 file changed
+6 -2
+6 -2
View File
@@ -47,8 +47,12 @@ export default async function MemoryPage() {
<PullToRefresh>
<PageLayout title="Memory" subtitle="What Ivy knows — the knowledge graph">
{/* Top stats */}
<div className="grid grid-cols-1 sm:grid-cols-3 gap-4">
{/* Top stats — same density fix as Goals (3f062a8): grid-cols-3
everywhere so three single-stat cards don't stack full-width on
mobile and eat ~400px before the first piece of actual content.
Short labels + small values fit comfortably in ~130px-wide cards
at 414px. */}
<div className="grid grid-cols-3 gap-2 sm:gap-4">
<Card>
<CardHeader icon={Database} title="Entities" />
<div className="text-2xl font-bold">{stats.totalEntities.toLocaleString()}</div>