From 69251de995dd1d1d8a89cdd57a1b26241d3d84a7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 12 Mar 2019 14:27:29 +0100 Subject: [PATCH] UI: Set max-width variable for select2. --- src/styles/plugins/_js_select2.sass | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/styles/plugins/_js_select2.sass b/src/styles/plugins/_js_select2.sass index 26776b4a..d1b66fb1 100644 --- a/src/styles/plugins/_js_select2.sass +++ b/src/styles/plugins/_js_select2.sass @@ -1,7 +1,7 @@ @import ../config +$select2-dropdown-width: 180px .select2-container - width: 100% !important box-sizing: border-box display: inline-block margin: 0 @@ -20,9 +20,8 @@ display: block padding-left: 8px padding-right: 20px - overflow: hidden - text-overflow: ellipsis - white-space: nowrap + +text-overflow-ellipsis + max-width: $select2-dropdown-width .select2-selection__clear position: relative