diff --git a/src/Resources/assets/shop/scss/pages/wishlist-button/index.scss b/src/Resources/assets/shop/scss/pages/wishlist-button/index.scss index 35018c32..c834058f 100644 --- a/src/Resources/assets/shop/scss/pages/wishlist-button/index.scss +++ b/src/Resources/assets/shop/scss/pages/wishlist-button/index.scss @@ -1,20 +1,38 @@ -.bb-wishlist-button > span.text{ +.bb-wishlist-button > span.text { @media screen and (max-width: $breakpoint-sm) { display: none !important; } } -.bb-wishlist-button{ - @media screen and (max-width: $breakpoint-sm) { - display: flex !important; - justify-content: center; - width: 20%; +.bb-wishlist-button { + display: flex !important; + align-items: center; + justify-content: center; + padding: 12px 24px !important; + margin: 0 !important; + + i { + width: 35px !important; } } -.bb-wishlist-button > span > i.heart{ +.bb-wishlist-button > span > i.heart { @media screen and (max-width: $breakpoint-sm) { margin: unset !important; } } +.bb-add-to-cart-container { + display: flex; + gap: 1em; + padding: 1em 0; + + > * { + margin: 0 !important; + width: 100%; + } + + @media screen and (max-width: $breakpoint-sm) { + flex-direction: column; + } +} diff --git a/src/Resources/views/Common/_addToWishlist.html.twig b/src/Resources/views/Common/_addToWishlist.html.twig index b719e9fc..652da97a 100644 --- a/src/Resources/views/Common/_addToWishlist.html.twig +++ b/src/Resources/views/Common/_addToWishlist.html.twig @@ -2,7 +2,7 @@ {% if findAllByShopUserAndToken(app.user)|length < 2 %} @@ -32,10 +32,10 @@ {% else %} {% if findAllByAnonymousAndChannel(sylius.channel)|length < 2 %} {{ 'bitbag_sylius_wishlist_plugin.ui.add_to_wishlist'|trans }} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig index 0e7df8a5..080bd688 100644 --- a/tests/Application/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig +++ b/tests/Application/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig @@ -36,17 +36,17 @@ {{ form_widget(form.wishlists) }} - - + + {{ 'sylius.ui.add_to_cart'|trans }} {{ form.addToWishlist.vars.label|trans }}