diff --git a/src/components/Main/SliderMain/SliderMainClient.tsx b/src/components/Main/SliderMain/SliderMainClient.tsx index 33c7c43..3929b8c 100644 --- a/src/components/Main/SliderMain/SliderMainClient.tsx +++ b/src/components/Main/SliderMain/SliderMainClient.tsx @@ -73,25 +73,33 @@ export default function SliderMainClient({ slidesList }: SliderMainClientProps): priority={index === 0} /> -
-

{slide.title}

+ {(slide.title || slide.description || slide.button?.link) && ( +
+ {slide.title && ( +

{slide.title}

+ )} -
+ {slide.description && ( +
+ )} - + {slide.button?.name ?? 'Подробнее'} + )} - href={slide.button?.link ?? '#'} - > - {slide.button?.name ?? 'Подробнее'} - -
+
+ )} ) })} diff --git a/src/styles/blocks/section.scss b/src/styles/blocks/section.scss index 42ab136..9b81130 100644 --- a/src/styles/blocks/section.scss +++ b/src/styles/blocks/section.scss @@ -2,6 +2,7 @@ .section { display: flex; + overflow-x: hidden; padding: 50px 0; box-shadow: $boxShadowSection; diff --git a/src/styles/globals.scss b/src/styles/globals.scss index 1a1610c..8bbc02d 100644 --- a/src/styles/globals.scss +++ b/src/styles/globals.scss @@ -9,7 +9,6 @@ html, body { display: flex; - overflow-x: hidden; flex-direction: column; min-width: $mobile-min-width; height: 100%;