+ 'p-0 sm:p-2 md:p-4 lg:p-8 bg-card dark:bg-wash-dark h-full relative rounded-b-lg lg:rounded-b-none',
+ // Allow content to be scrolled if it's too high to fit.
+ // Note we don't want this in the expanded state
+ // because it breaks position: sticky (and isn't needed anyway).
+ // We also don't want this for errors because they expand
+ // parent and making them scrollable is confusing.
+ !isExpanded && !error && isReady ? 'overflow-auto' : null
+ )}>
{error && (
+ isExpanded ? 'sticky top-8' : null
+ )}>
)}
diff --git a/beta/src/components/Search.tsx b/beta/src/components/Search.tsx
index a82148930..86372f7a0 100644
--- a/beta/src/components/Search.tsx
+++ b/beta/src/components/Search.tsx
@@ -31,8 +31,7 @@ function Hit({hit, children}: any) {
function Kbd(props: {children?: React.ReactNode}) {
return (
);