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 2021/01/08 18:10:06 UTC

[superset] branch master updated: fix: Set width to pseudoelement to wrap filter box (#12306)

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 4d27993  fix: Set width to pseudoelement to wrap filter box (#12306)
4d27993 is described below

commit 4d279935df8bf82bc83db6fa494b0581dfdaf810
Author: Victor Malai <ma...@gmail.com>
AuthorDate: Fri Jan 8 20:09:37 2021 +0200

    fix: Set width to pseudoelement to wrap filter box (#12306)
    
    * fix: set width pseudoelement to wrap
    
    * Fix
    
    Co-authored-by: Victor Malai <vi...@Victors-MacBook-Pro.local>
---
 superset-frontend/src/explore/components/AdhocFilterEditPopover.jsx     | 2 +-
 .../src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/explore/components/AdhocFilterEditPopover.jsx b/superset-frontend/src/explore/components/AdhocFilterEditPopover.jsx
index 017d1e1..102723c 100644
--- a/superset-frontend/src/explore/components/AdhocFilterEditPopover.jsx
+++ b/superset-frontend/src/explore/components/AdhocFilterEditPopover.jsx
@@ -149,7 +149,7 @@ export default class AdhocFilterEditPopover extends React.Component {
           defaultActiveKey={adhocFilter.expressionType}
           className="adhoc-filter-edit-tabs"
           data-test="adhoc-filter-edit-tabs"
-          style={{ height: this.state.height, width: this.state.width }}
+          style={{ minHeight: this.state.height, width: this.state.width }}
           allowOverflow
         >
           <Tabs.TabPane
diff --git a/superset-frontend/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx b/superset-frontend/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
index 819e605..5856bfa 100644
--- a/superset-frontend/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
+++ b/superset-frontend/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
@@ -44,6 +44,7 @@ const SelectWithLabel = styled(Select)`
     display: inline-block;
     white-space: nowrap;
     color: ${({ theme }) => theme.colors.grayscale.light1};
+    width: max-content;
   }
 `;