From e727a38071983e1ed640325490c64153b542a0b8 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 24 Sep 2019 10:19:23 +0200 Subject: [PATCH] Improved the responsiveness of the "Create or assign product" dialog --- public/viewjs/components/productpicker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/viewjs/components/productpicker.js b/public/viewjs/components/productpicker.js index b4d07621..165a17ea 100644 --- a/public/viewjs/components/productpicker.js +++ b/public/viewjs/components/productpicker.js @@ -243,3 +243,9 @@ $(document).on("Grocy.BarcodeScanned", function(e, barcode) Grocy.Components.ProductPicker.GetInputElement().blur(); }, 200); }); + +$(document).on("shown.bs.modal", function(e) +{ + $(".modal-footer").addClass("d-block").addClass("d-sm-flex"); + $(".modal-footer").find("button").addClass("mt-2").addClass("mt-sm-0"); +})