Skip to content

Commit

Permalink
💄 Adjust for phonesize #2610
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Jan 22, 2025
1 parent 5dc1bb1 commit 3a7d0b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/core/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export const Carousel = forwardRef<HTMLElement, CarouselProps>(function Carousel
variant === 'image' && displayMode === 'single'
? 'w-[var(--image-carousel-card-w-sm)] md:w-[var(--image-carousel-card-w-md)] lg:w-[var(--image-carousel-card-w-lg)] mx-auto col-start-1 col-end-1 row-start-2 row-end-2'
: ''
} pt-6 pb-2 ${items.length === 3 ? 'lg:hidden' : ''} flex ${
} pt-2 sm:pt-6 pb-2 ${items.length === 3 ? 'lg:hidden' : ''} flex ${
internalAutoRotation ? 'justify-between' : 'justify-end'
}`}
>
Expand Down
8 changes: 4 additions & 4 deletions web/core/Carousel/CarouselImageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ export const CarouselImageItem = forwardRef<HTMLLIElement, CarouselImageItemProp
className={`${
active ? 'block' : 'hidden'
} ${
captionPositionUnderImage ? '-bottom-[158px] min-w-[40%] max-w-[60%] lg:left-16' : 'bottom-0 lg:left-8'
} absolute left-4 right-4 lg:right-8 mb-4 lg:mb-8
captionPositionUnderImage ? '-bottom-[198px] sm:-bottom-[158px] mb-4 min-w-full max-w-full sm:min-w-[40%] sm:max-w-[60%] lg:left-16' : 'bottom-0 lg:left-8'
} absolute left-4 right-4 lg:right-8 mb-12 lg:mb-8
`}
>
<div
className={envisTwMerge(
captionPositionUnderImage
? 'w-full text-slate-80 pl-2 pr-8 flex flex-col max-w-text'
: 'bg-spruce-wood-70/75 text-slate-80 px-8 pt-6 w-fit flex flex-col max-w-text',
: 'bg-spruce-wood-70/75 text-slate-80 px-8 pt-6 w-fit flex flex-col max-w-text',
)}
>
{caption && <span className={`text-lg ${attribution ? 'pb-2' : 'pb-14'}`}>{caption}</span>}
{attribution && <span className={`text-sm ${caption ? 'pb-8' : 'pb-14'}`}>{attribution}</span>}
{attribution && <span className={`text-sm ${caption ? 'pb-8' : 'pb-16'}`}>{attribution}</span>}
</div>
</figcaption>
</figure>
Expand Down

0 comments on commit 3a7d0b0

Please sign in to comment.