Skip to content

Commit

Permalink
fix: correct max-width usage
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Feb 7, 2024
1 parent 6a57635 commit 7fdc8a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dm-core-plugins/src/stack/StackPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion packages/dm-core-plugins/src/stack/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const defaultConfig: StackPluginConfig = {
verticalPlacement: 'left',
horizontalPlacement: 'top',
spacing: 2,
maxWidth: '100%',
maxWidth: 'none',
wrap: false,
classNames: [],
}

0 comments on commit 7fdc8a0

Please sign in to comment.