mirror of
https://github.com/apache/superset.git
synced 2024-09-18 03:29:38 -04:00
Fix chart select borders in BuilderComponentPane (#11766)
This commit is contained in:
parent
b1a963b93f
commit
a4f44255aa
@ -23,7 +23,7 @@ import Tabs from 'src/common/components/Tabs';
|
|||||||
import { StickyContainer, Sticky } from 'react-sticky';
|
import { StickyContainer, Sticky } from 'react-sticky';
|
||||||
import { ParentSize } from '@vx/responsive';
|
import { ParentSize } from '@vx/responsive';
|
||||||
|
|
||||||
import { t } from '@superset-ui/core';
|
import { t, styled } from '@superset-ui/core';
|
||||||
|
|
||||||
import NewColumn from './gridComponents/new/NewColumn';
|
import NewColumn from './gridComponents/new/NewColumn';
|
||||||
import NewDivider from './gridComponents/new/NewDivider';
|
import NewDivider from './gridComponents/new/NewDivider';
|
||||||
@ -43,14 +43,18 @@ const defaultProps = {
|
|||||||
|
|
||||||
const SUPERSET_HEADER_HEIGHT = 59;
|
const SUPERSET_HEADER_HEIGHT = 59;
|
||||||
|
|
||||||
|
const BuilderComponentPaneTabs = styled(Tabs)`
|
||||||
|
line-height: inherit;
|
||||||
|
margin-top: ${({ theme }) => theme.gridUnit * 2}px;
|
||||||
|
`;
|
||||||
|
|
||||||
class BuilderComponentPane extends React.PureComponent {
|
class BuilderComponentPane extends React.PureComponent {
|
||||||
renderTabs(height) {
|
renderTabs(height) {
|
||||||
const { isSticky } = this.props;
|
const { isSticky } = this.props;
|
||||||
return (
|
return (
|
||||||
<Tabs
|
<BuilderComponentPaneTabs
|
||||||
id="tabs"
|
id="tabs"
|
||||||
className="tabs-components"
|
className="tabs-components"
|
||||||
style={{ marginTop: '10px' }}
|
|
||||||
data-test="dashboard-builder-component-pane-tabs-navigation"
|
data-test="dashboard-builder-component-pane-tabs-navigation"
|
||||||
>
|
>
|
||||||
<Tabs.TabPane key={1} tab={t('Components')}>
|
<Tabs.TabPane key={1} tab={t('Components')}>
|
||||||
@ -66,7 +70,7 @@ class BuilderComponentPane extends React.PureComponent {
|
|||||||
height={height + (isSticky ? SUPERSET_HEADER_HEIGHT : 0)}
|
height={height + (isSticky ? SUPERSET_HEADER_HEIGHT : 0)}
|
||||||
/>
|
/>
|
||||||
</Tabs.TabPane>
|
</Tabs.TabPane>
|
||||||
</Tabs>
|
</BuilderComponentPaneTabs>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user