diff --git a/packages/dm-core-plugins/src/common/Stack/types.ts b/packages/dm-core-plugins/src/common/Stack/types.ts
index 5a773270d..931386424 100644
--- a/packages/dm-core-plugins/src/common/Stack/types.ts
+++ b/packages/dm-core-plugins/src/common/Stack/types.ts
@@ -66,4 +66,5 @@ export const defaultProps: StackProps = {
grow: 0,
shrink: 1,
fullWidth: false,
+ spacing: 0,
}
diff --git a/packages/dm-core-plugins/src/data-grid/DataGridPlugin.tsx b/packages/dm-core-plugins/src/data-grid/DataGridPlugin.tsx
index 6068d12b1..6897b360e 100644
--- a/packages/dm-core-plugins/src/data-grid/DataGridPlugin.tsx
+++ b/packages/dm-core-plugins/src/data-grid/DataGridPlugin.tsx
@@ -124,7 +124,7 @@ export function DataGridPlugin(props: IUIPlugin) {
return !data ? null : (
-
+
{
src={blobUrl}
alt={meta.title}
style={{
- width: config.width ?? '100%',
+ maxWidth: config.width ?? '100%',
+ width: '100%',
height: config.height ?? 'auto',
- maxWidth: 'unset',
}}
/>
)
diff --git a/packages/dm-core-plugins/src/stack/StackPlugin.tsx b/packages/dm-core-plugins/src/stack/StackPlugin.tsx
index 4f6ed1ce5..7a7acb594 100644
--- a/packages/dm-core-plugins/src/stack/StackPlugin.tsx
+++ b/packages/dm-core-plugins/src/stack/StackPlugin.tsx
@@ -26,14 +26,17 @@ export const StackPlugin = (props: IUIPlugin) => {
direction: configMap[config.direction] as DirectionTypes,
[configMap.verticalPlacement]: configMap[config.verticalPlacement],
[configMap.horizontalPlacement]: configMap[config.horizontalPlacement],
- className: config.classNames?.join(' '),
+ className: config.classNames.join(' '),
spacing: config.spacing,
wrap: config.wrap ? 'wrap' : 'no-wrap',
style: { maxWidth: config.maxWidth },
}
return (
-
+
{config.items?.map((item, index) => (