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

This commit is contained in:
Torkel Ödegaard 2022-05-30 07:41:38 +02:00 committed by GitHub
parent 1970c9020a
commit 7be5142164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;