From 8db8383be6689a8213b8e5b0a99b097e10c814f2 Mon Sep 17 00:00:00 2001 From: maksim Date: Thu, 24 Jul 2025 17:36:45 +0300 Subject: [PATCH] Task 7401 | change text limit to reviews with large photo --- wp-content/themes/cosmopet/static/css/new-front-page.css | 2 ++ .../themes/cosmopet/templates/shop/reviews-section_block.twig | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/cosmopet/static/css/new-front-page.css b/wp-content/themes/cosmopet/static/css/new-front-page.css index fc87e0e..43bab54 100644 --- a/wp-content/themes/cosmopet/static/css/new-front-page.css +++ b/wp-content/themes/cosmopet/static/css/new-front-page.css @@ -977,6 +977,8 @@ background: radial-gradient(161.08% 232.33% at 133.99% -48.29%, #EE6868 0%, #569 line-height: 140%; color: #121212; margin-bottom: 10px; +} +.main-food_reviews-slide-position:not(.--no-min-height){ min-height: 60px; } .main-food_reviews-slide-text { diff --git a/wp-content/themes/cosmopet/templates/shop/reviews-section_block.twig b/wp-content/themes/cosmopet/templates/shop/reviews-section_block.twig index 1dff1ba..7f2fb63 100644 --- a/wp-content/themes/cosmopet/templates/shop/reviews-section_block.twig +++ b/wp-content/themes/cosmopet/templates/shop/reviews-section_block.twig @@ -23,10 +23,10 @@ {% endif %}

{{fn('get_the_title', slide)}}

-

{{fn('get_field', 'desc', slide)}}

+

{{fn('get_field', 'desc', slide)}}

{% if fn('get_field', 'text', slide) %} {% if fn('get_field', 'type', slide) == 'media' %} - {% set maxLength = 250 %} + {% set maxLength = 160 %} {% else %} {% set maxLength = 350 %} {% endif %}