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: [], }