From dcd9a40bef4de189fc3491e165991849275d6504 Mon Sep 17 00:00:00 2001 From: Gagancreates Date: Thu, 28 May 2026 00:58:04 +0530 Subject: [PATCH] feat: rounder web search card with subtle expand/collapse animation --- apps/x/apps/renderer/src/App.css | 24 +++++++++++++++++++ .../ai-elements/web-search-result.tsx | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/apps/x/apps/renderer/src/App.css b/apps/x/apps/renderer/src/App.css index 46763d5c..29d7a82d 100644 --- a/apps/x/apps/renderer/src/App.css +++ b/apps/x/apps/renderer/src/App.css @@ -35,6 +35,30 @@ } } +/* Radix Collapsible expand/collapse — animate height (via the radix CSS var) + plus a subtle fade. Used by the web search card. */ +@keyframes collapsible-down { + from { + height: 0; + opacity: 0; + } + to { + height: var(--radix-collapsible-content-height); + opacity: 1; + } +} + +@keyframes collapsible-up { + from { + height: var(--radix-collapsible-content-height); + opacity: 1; + } + to { + height: 0; + opacity: 0; + } +} + @media (prefers-reduced-motion: no-preference) { a:nth-of-type(2) .logo { animation: logo-spin infinite 20s linear; diff --git a/apps/x/apps/renderer/src/components/ai-elements/web-search-result.tsx b/apps/x/apps/renderer/src/components/ai-elements/web-search-result.tsx index 32a02bf1..b51901ba 100644 --- a/apps/x/apps/renderer/src/components/ai-elements/web-search-result.tsx +++ b/apps/x/apps/renderer/src/components/ai-elements/web-search-result.tsx @@ -201,7 +201,7 @@ export function WebSearchResult({ query, results, status, title = "Searched the {/* Rolling header: clipped, fixed height so sliding lines stay contained */} @@ -228,7 +228,7 @@ export function WebSearchResult({ query, results, status, title = "Searched the - +
{/* Query */}