Skip to content

Commit

Permalink
Merge pull request #699 from gurkiratz/fix/gurkiratz
Browse files Browse the repository at this point in the history
Fix unresponsive image height and increased search bar height
  • Loading branch information
hkirat authored Dec 11, 2024
2 parents 57716fb + 3e6bf20 commit f885800
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions apps/web/components/ContentSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function ContentSearch({ tracks }: { tracks: TrackPros[] }) {
<span className="sr-only">Close</span>
</DialogClose>
</div>
<div className="h-[400px] py-4 space-y-4 overflow-y-scroll" ref={scrollableContainerRef}>
<div className="h-[500px] py-4 space-y-4 overflow-y-scroll" ref={scrollableContainerRef}>
{searchTracks.length > 0 &&
searchTracks.map((track, index) => (
<div key={track.payload.problemId} className={`p-2 ${index === selectedIndex ? "bg-blue-600/20" : ""}`}>
Expand All @@ -155,17 +155,18 @@ export function ContentSearch({ tracks }: { tracks: TrackPros[] }) {
passHref
>
<Card className="p-2 w-full mx-2">
<div className="flex my-2">
<img
alt={track.payload.problemTitle}
src={track.payload.image}
className="flex mx-2 w-1/6 rounded-xl"
/>

<div>
<CardHeader>
<CardTitle>{track.payload.problemTitle}</CardTitle>
<CardDescription>{track.payload.trackTitle}</CardDescription>
<div className="flex items-center gap-4 py-1 sm:py-2">
<div className="w-16 h-16 sm:w-20 sm:h-20 flex-shrink-0 overflow-hidden rounded-xl">
<img
alt={track.payload.problemTitle}
src={track.payload.image}
className="w-full h-full object-cover"
/>
</div>
<div className="flex-1 min-w-0">
<CardHeader className="p-0">
<CardTitle className="text-base sm:text-lg md:text-xl">{track.payload.problemTitle}</CardTitle>
<CardDescription className="text-sm truncate">Track: {track.payload.trackTitle}</CardDescription>
</CardHeader>
</div>
</div>
Expand Down

0 comments on commit f885800

Please sign in to comment.