@pdfme/ui 5.3.12 → 5.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Button, Form } from 'antd';
|
1
|
+
import { Space, Button, Form } from 'antd';
|
2
2
|
import React from 'react';
|
3
3
|
import type { PropPanelWidgetProps } from '@pdfme/common';
|
4
4
|
import {
|
@@ -210,7 +210,7 @@ const AlignWidget = (props: PropPanelWidgetProps) => {
|
|
210
210
|
|
211
211
|
return (
|
212
212
|
<Form.Item label={schema.title}>
|
213
|
-
<
|
213
|
+
<Space.Compact>
|
214
214
|
{layoutBtns.map((btn) => (
|
215
215
|
<Button
|
216
216
|
key={btn.id}
|
@@ -219,7 +219,7 @@ const AlignWidget = (props: PropPanelWidgetProps) => {
|
|
219
219
|
{...btn}
|
220
220
|
/>
|
221
221
|
))}
|
222
|
-
</
|
222
|
+
</Space.Compact>
|
223
223
|
</Form.Item>
|
224
224
|
);
|
225
225
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Button, Form, theme } from 'antd';
|
1
|
+
import { Space, Button, Form, theme } from 'antd';
|
2
2
|
import React from 'react';
|
3
3
|
import type { PropPanelWidgetProps, SchemaForUI } from '@pdfme/common';
|
4
4
|
interface ButtonConfig {
|
@@ -53,7 +53,7 @@ const ButtonGroupWidget = (props: PropPanelWidgetProps) => {
|
|
53
53
|
|
54
54
|
return (
|
55
55
|
<Form.Item>
|
56
|
-
<
|
56
|
+
<Space.Compact>
|
57
57
|
{(schema.buttons as ButtonConfig[]).map((btn: ButtonConfig, index: number) => {
|
58
58
|
const active = isActive(btn);
|
59
59
|
return (
|
@@ -70,7 +70,7 @@ const ButtonGroupWidget = (props: PropPanelWidgetProps) => {
|
|
70
70
|
/>
|
71
71
|
);
|
72
72
|
})}
|
73
|
-
</
|
73
|
+
</Space.Compact>
|
74
74
|
</Form.Item>
|
75
75
|
);
|
76
76
|
};
|