Skip to content

An AI-powered search engine with a generative UI

chore: Update Card component in search results

Yoshiki Miuraba7ca88c6b03
diff --git a/components/search-results.tsx b/components/search-results.tsx
index 5e7e6a41..14c9b257 100644
--- a/components/search-results.tsx
+++ b/components/search-results.tsx
@@ -32,8 +32,8 @@ export function SearchResults({ results }: SearchResultsProps) {
{displayedResults.map((result, index) => (
<div className="w-1/2 md:w-1/4 p-1" key={index}>
<Link href={result.url} passHref target="_blank">
- <Card className="flex-1">
- <CardContent className="p-2">
+ <Card className="flex-1 h-full">
+ <CardContent className="p-2 flex flex-col justify-between h-full">
<p className="text-xs line-clamp-2">
{result.title || result.content}
</p>