You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by di...@apache.org on 2022/05/05 16:01:31 UTC
[superset] 01/04: lint
This is an automated email from the ASF dual-hosted git repository.
diegopucci pushed a commit to branch mobile-friendly-dash
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 4dbd07db796dfb850a271ec9195fe7bd83531ee2
Author: Ville Brofeldt <vi...@gmail.com>
AuthorDate: Thu May 5 10:38:06 2022 +0300
lint
---
.../nativeFilters/FilterBar/Header/index.tsx | 9 ++++-----
.../components/nativeFilters/FilterBar/index.tsx | 20 +++++++++++++-------
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx
index 7a5675cebf..99cc8f2960 100644
--- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx
+++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Header/index.tsx
@@ -41,17 +41,16 @@ const TitleArea = styled.h4`
const HeaderButton = styled(Button)`
padding: 0;
- @media (max-width: 767px){
+ @media (max-width: 767px) {
svg {
- display: none;
- }
+ display: none;
+ }
&::after {
content: '\\2715';
width: ${({ theme }) => theme.gridUnit * 6}px;
- height: ${({ theme }) => theme.gridUnit * 6}px;
+ height: ${({ theme }) => theme.gridUnit * 6}px;
}
}
-
`;
const Wrapper = styled.div`
diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
index fd7e109f45..44da7a54d6 100644
--- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
+++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
@@ -81,7 +81,7 @@ const BarWrapper = styled.div<{ width: number }>`
& .ant-tabs-top > .ant-tabs-nav {
margin: 0;
}
-
+
&.open {
width: ${({ width }) => width}px; // arbitrary...
}
@@ -155,7 +155,7 @@ const CollapsedBar = styled.div<{ offset: number }>`
justify-content: flex-end;
}
&::after {
- content: "Filters";
+ content: 'Filters';
margin-right: ${({ theme }) => theme.gridUnit}px;
}
}
@@ -507,11 +507,17 @@ const FilterBar: React.FC<FiltersBarProps> = ({
</AntdTabs.TabPane>
</StyledTabs>
) : (
- <div css={[tabPaneStyle, css`
- @media (max-width: 767px){
- height: auto;
- }
- `]} onScroll={onScroll}>
+ <div
+ css={[
+ tabPaneStyle,
+ css`
+ @media (max-width: 767px) {
+ height: auto;
+ }
+ `,
+ ]}
+ onScroll={onScroll}
+ >
{filterValues.length === 0 ? (
<FilterBarEmptyStateContainer>
<EmptyStateSmall