Skip to content

Commit

Permalink
Merge pull request #323 from miurla/fix-height
Browse files Browse the repository at this point in the history
chore: Update Card component in search results
  • Loading branch information
miurla committed Aug 26, 2024
2 parents ccec97d + ba7ca88 commit 18f874e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 18f874e

Please sign in to comment.