You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/09/22 23:52:58 UTC

(superset) branch master updated: fix: fixed inverseSelection (#40970)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ea1ffcf0adb fix: fixed inverseSelection (#40970)
ea1ffcf0adb is described below

commit ea1ffcf0adb812c0e80979c7ef2e691c5f516a31
Author: sonfire186 <ig...@gmail.com>
AuthorDate: Wed Sep 23 04:52:50 2026 +0500

    fix: fixed inverseSelection (#40970)
    
    Co-authored-by: Evan Rusackas <ev...@preset.io>
---
 .../components/Select/SelectFilterPlugin.tsx       | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
index d0bcb0dc2b6..551e7a02ab6 100644
--- a/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
+++ b/superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
@@ -102,14 +102,32 @@ const StyledSpace = styled(Space)<{
   width: 100%;
 
   .exclude-select {
-    width: 80px;
-    flex-shrink: 0;
+    width: 100%;
+    min-width: 80px;
   }
 
   &.ant-space {
     .ant-space-item {
       width: ${({ inverseSelection }) => (!inverseSelection ? '100%' : 'auto')};
     }
+
+    ${({ inverseSelection }) =>
+      inverseSelection &&
+      `
+      .ant-space-item:first-of-type {
+        flex: 1 1 25%;
+      }
+
+      .ant-space-item:last-child {
+        flex: 3 1 75%;
+        min-width: 0;
+      }
+
+      .select-container {
+        width: 100% !important;
+        max-width: none !important;
+      }
+    `}
   }
 `;