Now the summary image is smart enough to switch from cover when on phone screen to a full contained image on a bigger screen
This commit is contained in:
parent
dd194cda4c
commit
0e36d23bb4
@ -25,7 +25,7 @@ export default function PodcastSummary({ stream }: PodcastSummaryType) {
|
|||||||
<div className="w-full h-auto shadow-md overflow-hidden flex flex-col bg-purple-200">
|
<div className="w-full h-auto shadow-md overflow-hidden flex flex-col bg-purple-200">
|
||||||
<div className="flex flex-col md:flex-row md:items-start">
|
<div className="flex flex-col md:flex-row md:items-start">
|
||||||
<div className="relative w-full h-[150px] md:w-1/3 md:h-[376] bg-purple-100 flex-shrink-0">
|
<div className="relative w-full h-[150px] md:w-1/3 md:h-[376] bg-purple-100 flex-shrink-0">
|
||||||
<Image unoptimized src={summaryData.imageUrl ?? ''} alt={summaryData.title ?? ''} fill objectFit="contain" className="rounded-md" />
|
<Image unoptimized src={summaryData.imageUrl ?? ''} alt={summaryData.title ?? ''} fill className="object-cover md:object-contain" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="p-4 flex-grow flex flex-col md:ml-4">
|
<div className="p-4 flex-grow flex flex-col md:ml-4">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user