FIX: Fix select kit size (#10094)

FIX: Fix select kit size (#10094)

diff --git a/app/assets/javascripts/select-kit/addon/components/select-kit.js b/app/assets/javascripts/select-kit/addon/components/select-kit.js
index 8ad01cc..1b0b185 100644
--- a/app/assets/javascripts/select-kit/addon/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/addon/components/select-kit.js
@@ -800,15 +800,19 @@ export default Component.extend(
               name: "applySmallScreenMaxWidth",
               enabled: window.innerWidth <= 450,
               phase: "beforeWrite",
-              fn({ state }) {
+              fn: ({ state }) => {
                 if (inModal) {
                   const innerModal = document.querySelector(
                     "#discourse-modal div.modal-inner-container"
                   );
 
                   if (innerModal) {
-                    state.styles.popper.width = `${innerModal.clientWidth -
-                      20}px`;
+                    if (this.multiSelect) {
+                      state.styles.popper.width = `${this.element.offsetWidth}px`;
+                    } else {
+                      state.styles.popper.width = `${innerModal.clientWidth -
+                        20}px`;
+                    }
                   }
                 } else {
                   state.styles.popper.width = `${window.innerWidth - 20}px`;

GitHub sha: aff9bfd5

This commit appears in #10094 which was merged by nbianca.