From cf793e2b9599efc32ecd057d7ce55f6ad8f4891c Mon Sep 17 00:00:00 2001 From: Andrea Vesterhus Date: Wed, 7 Feb 2024 12:54:49 +0100 Subject: [PATCH] fix: correct max-width usage --- packages/dm-core-plugins/src/stack/StackPlugin.tsx | 1 + packages/dm-core-plugins/src/stack/types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dm-core-plugins/src/stack/StackPlugin.tsx b/packages/dm-core-plugins/src/stack/StackPlugin.tsx index d36cfc5db..b1567c66d 100644 --- a/packages/dm-core-plugins/src/stack/StackPlugin.tsx +++ b/packages/dm-core-plugins/src/stack/StackPlugin.tsx @@ -32,6 +32,7 @@ export const StackPlugin = (props: IUIPlugin) => { className: config.classNames?.join(' '), spacing: config.spacing !== undefined ? config.spacing : 1.5, wrap: config.wrap ? 'wrap' : 'no-wrap', + style: { maxWidth: config.maxWidth }, } return ( diff --git a/packages/dm-core-plugins/src/stack/types.ts b/packages/dm-core-plugins/src/stack/types.ts index e30445c62..de28ee9d2 100644 --- a/packages/dm-core-plugins/src/stack/types.ts +++ b/packages/dm-core-plugins/src/stack/types.ts @@ -17,7 +17,7 @@ export const defaultConfig: StackPluginConfig = { verticalPlacement: 'left', horizontalPlacement: 'top', spacing: 2, - maxWidth: '100%', + maxWidth: 'none', wrap: false, classNames: [], }