mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: White space between Chart and Data panel in Explore (#14495)
* Adjust white space * Adjust chart padding
This commit is contained in:
@@ -93,6 +93,7 @@ const CollapseWrapper = styled.div`
|
||||
height: calc(100% - ${({ theme }) => theme.gridUnit * 8}px);
|
||||
|
||||
.ant-collapse-content-box {
|
||||
padding-top: 0;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,8 @@ const propTypes = {
|
||||
|
||||
const GUTTER_SIZE_FACTOR = 1.25;
|
||||
|
||||
const CHART_PANEL_PADDING = 30;
|
||||
const CHART_PANEL_PADDING_HORIZ = 30;
|
||||
const CHART_PANEL_PADDING_VERTICAL = 15;
|
||||
const HEADER_PADDING = 15;
|
||||
|
||||
const STORAGE_KEYS = {
|
||||
@@ -183,8 +184,9 @@ const ExploreChartPanel = props => {
|
||||
|
||||
const renderChart = useCallback(() => {
|
||||
const { chart } = props;
|
||||
const newHeight = calcSectionHeight(splitSizes[0]) - CHART_PANEL_PADDING;
|
||||
const chartWidth = chartPanelWidth - CHART_PANEL_PADDING;
|
||||
const newHeight =
|
||||
calcSectionHeight(splitSizes[0]) - CHART_PANEL_PADDING_VERTICAL;
|
||||
const chartWidth = chartPanelWidth - CHART_PANEL_PADDING_HORIZ;
|
||||
return (
|
||||
chartWidth > 0 && (
|
||||
<ChartContainer
|
||||
|
||||
Reference in New Issue
Block a user