From 5648968a724cd45b17043fc39b48633a8bdb96b3 Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Sat, 9 Feb 2019 23:18:08 +0100 Subject: [PATCH] Scaling text input field to keep enough room for the buttons --- .../ShopBundle/Resources/private/scss/style.scss | 12 ++++++++++++ .../Resources/views/Product/Index/_search.html.twig | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Sylius/Bundle/ShopBundle/Resources/private/scss/style.scss b/src/Sylius/Bundle/ShopBundle/Resources/private/scss/style.scss index a4b03704208..996f8ed2ca2 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/private/scss/style.scss +++ b/src/Sylius/Bundle/ShopBundle/Resources/private/scss/style.scss @@ -31,3 +31,15 @@ body { .ui.unmargined.segments { margin: 0; } + +#searchbar { + display: flex; +} + +#searchbarTextField { + flex-grow: 100; +} + +#searchbarButtons { + width: fit-content; +} diff --git a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_search.html.twig b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_search.html.twig index 96315e12dec..1c73b5a80dd 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_search.html.twig +++ b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_search.html.twig @@ -1,12 +1,12 @@
-
-
+