diff --git a/client/src/widgets/catalog-slider/ui/CatalogSlider.tsx b/client/src/widgets/catalog-slider/ui/CatalogSlider.tsx
index 1b55638..7180f42 100644
--- a/client/src/widgets/catalog-slider/ui/CatalogSlider.tsx
+++ b/client/src/widgets/catalog-slider/ui/CatalogSlider.tsx
@@ -46,53 +46,66 @@ function CatalogSliderInner({ slides }: { slides: CatalogSliderSlide[] }) {
bgcolor: 'action.hover',
}}
>
- {slides.map((slide, i) => (
-
+ {slides.map((slide, i) => {
+ const captionText = String(slide.caption ?? '')
+ .trim()
+ .replace(/\u00a0/g, ' ')
+ return (
- {slide.caption.trim() ? (
+ >
1 ? 5 : 2,
- background: 'linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, transparent 100%)',
+ inset: 0,
+ width: '100%',
+ height: '100%',
+ objectFit: 'cover',
+ display: 'block',
+ zIndex: 0,
}}
- >
-
+ {captionText ? (
+ 1 ? 20 : 0,
+ zIndex: 4,
+ pt: 4,
+ pb: slides.length > 1 ? 2 : 2,
+ // background: 'linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 50%, transparent 100%)',
+ }}
>
- {slide.caption.trim()}
-
-
- ) : null}
-
- ))}
+
+ {captionText}
+
+
+ ) : null}
+
+ )
+ })}
{slides.length > 1 && (