Skip to content

Commit

Permalink
update: responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayana62 committed Jan 19, 2024
1 parent c8ee574 commit 78fcda8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ const SearchResults = () => {
}
>
{video?.id?.kind !== "youtube#playlist" && (
<div className="flex gap-2 relative">
<div className="flex flex-col sm:flex-row gap-2 relative">
<img
src={video?.snippet?.thumbnails?.medium?.url}
alt="thumbnail"
className={` mb-5 ${
video?.id?.kind === "youtube#channel"
? "rounded-full w-2/12 h-[12rem] mx-[5rem]"
: "rounded-xl w-4/12 h-[12rem]"
? "rounded-full w-full sm:w-2/12 h-[12rem] mx-[5rem]"
: "rounded-xl w-full sm:w-4/12 h-[12rem]"
}`}
/>
<div className=" w-8/12">
<div className="w-full sm:w-8/12">
<h2 className=" text-lg">
{video?.snippet?.title}
</h2>
Expand Down

0 comments on commit 78fcda8

Please sign in to comment.