From d2c85da1570873daa6fb76cc017bc931dc18d6d5 Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Wed, 29 Jul 2020 16:09:29 +0200 Subject: [PATCH 1/2] Re-add missing select2 placeholder #382 With the merge of the refactoring branches this code snippet got lost. --- src/scss/_select2.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scss/_select2.scss b/src/scss/_select2.scss index 5a69341af..ed0b92c98 100644 --- a/src/scss/_select2.scss +++ b/src/scss/_select2.scss @@ -43,4 +43,13 @@ .select2-dropdown { z-index: 2051; } + + // fix select2 placeholder cut-off from https://github.com/select2/select2/pull/4898#issuecomment-408568031 + .select2-container .select2-selection__rendered > *:first-child.select2-search--inline { + width: 100% !important; + + .select2-search__field { + width: 100% !important; + } + } } From e0e0bb248aec9ff692a953d5d2083b6908b7a5e8 Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Wed, 29 Jul 2020 16:10:15 +0200 Subject: [PATCH 2/2] Update dist files --- dist/scss/_select2.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dist/scss/_select2.scss b/dist/scss/_select2.scss index 5a69341af..ed0b92c98 100644 --- a/dist/scss/_select2.scss +++ b/dist/scss/_select2.scss @@ -43,4 +43,13 @@ .select2-dropdown { z-index: 2051; } + + // fix select2 placeholder cut-off from https://github.com/select2/select2/pull/4898#issuecomment-408568031 + .select2-container .select2-selection__rendered > *:first-child.select2-search--inline { + width: 100% !important; + + .select2-search__field { + width: 100% !important; + } + } }