From 4096f8a8d5fea522bf18670739c4dabfb9db5a0d Mon Sep 17 00:00:00 2001 From: maksim Date: Tue, 24 Jun 2025 11:40:38 +0300 Subject: [PATCH] =?UTF-8?q?Andrei=20|=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=D0=B0=20js=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B2=D0=BE=D0=BC=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=20=D1=81=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= =?UTF-8?q?=D0=BC=20=D0=BA=D0=BE=D1=80=D0=B7=D0=B8=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cosmopet/modules/shop/components/cart/assets/js/cart.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/cosmopet/modules/shop/components/cart/assets/js/cart.js b/wp-content/themes/cosmopet/modules/shop/components/cart/assets/js/cart.js index 9b91cb3..32ee157 100644 --- a/wp-content/themes/cosmopet/modules/shop/components/cart/assets/js/cart.js +++ b/wp-content/themes/cosmopet/modules/shop/components/cart/assets/js/cart.js @@ -229,11 +229,9 @@ jQuery(document).ready(function($) { var width = $basket[0] ? $basket[0].clientWidth : 600; setTimeout(function() { if (device <= 720) { - $aside.css('width', device + 'px'); - console.log('[openBasketOnFirstAdd] aside width:', device + 'px'); + $aside.addClass('active') } else { - $aside.css('width', width + 'px'); - console.log('[openBasketOnFirstAdd] aside width:', width + 'px'); + $aside.addClass('active') } }, 10); setCookie('basket_popup_shown', '1', 30);