PanelChrome: Fixes issue with padding not being applied as gridUnits (#49751) (#49780)

(cherry picked from commit 7be5142164)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-05-30 07:58:02 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 0b7e5aa9cf
commit 30b77e9716
@@ -79,7 +79,7 @@ const getContentStyle = (
headerHeight: number,
height: number
) => {
const chromePadding = padding === 'md' ? theme.components.panel.padding : 0;
const chromePadding = (padding === 'md' ? theme.components.panel.padding : 0) * theme.spacing.gridSize;
const panelBorder = 1 * 2;
const innerWidth = width - chromePadding * 2 - panelBorder;
const innerHeight = height - headerHeight - chromePadding * 2 - panelBorder;