From f6f93aad37e6258ec27af1b39335d0de9163210d Mon Sep 17 00:00:00 2001 From: jiAng <464816158@qq.com> Date: Fri, 17 Jun 2022 19:54:27 +0800 Subject: [PATCH] fix(cosmetic): cannot find m-r-10 class in superset.less (#20276) * fix(cosmetic): cannot find m-r-10 class in superset.less * fix: remove .m-r-10 class and use emotion instead * Update superset-frontend/src/components/Datasource/CollectionTable.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> * Update superset-frontend/src/components/Datasource/DatasourceEditor.jsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> --- .../src/components/Datasource/CollectionTable.tsx | 11 +++++++++-- .../src/components/Datasource/DatasourceEditor.jsx | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/components/Datasource/CollectionTable.tsx b/superset-frontend/src/components/Datasource/CollectionTable.tsx index 7ce0bfb95fb..194d3765792 100644 --- a/superset-frontend/src/components/Datasource/CollectionTable.tsx +++ b/superset-frontend/src/components/Datasource/CollectionTable.tsx @@ -130,6 +130,13 @@ const CrudButtonWrapper = styled.div` ${({ theme }) => `margin-bottom: ${theme.gridUnit * 2}px`} `; +const StyledButtonWrapper = styled.span` + ${({ theme }) => ` + margin-top: ${theme.gridUnit * 3}px; + margin-left: ${theme.gridUnit * 3}px; + `} +`; + export default class CRUDCollection extends React.PureComponent< CRUDCollectionProps, CRUDCollectionState @@ -424,7 +431,7 @@ export default class CRUDCollection extends React.PureComponent< <> {this.props.allowAddItem && ( - + - + )} ` + margin-top: ${theme.gridUnit * 3}px; + margin-left: ${theme.gridUnit * 3}px; + `} +`; + const checkboxGenerator = (d, onChange) => ( ); @@ -1361,7 +1368,7 @@ class DatasourceEditor extends React.PureComponent { > - + - +