@ant-design/agentic-ui 2.20.0 → 2.20.1
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.
|
@@ -416,7 +416,10 @@ var composeEditors = function(editor, plugins) {
|
|
|
416
416
|
position: 'relative',
|
|
417
417
|
gap: 24,
|
|
418
418
|
outline: 'none'
|
|
419
|
-
}, contentStyle)
|
|
419
|
+
}, (contentStyle === null || contentStyle === void 0 ? void 0 : contentStyle.padding) !== undefined ? {
|
|
420
|
+
'--content-padding': "".concat(typeof contentStyle.padding === 'number' ? "".concat(contentStyle.padding, "px") : contentStyle.padding),
|
|
421
|
+
padding: contentStyle.padding
|
|
422
|
+
} : {}, contentStyle),
|
|
420
423
|
ref: function(dom) {
|
|
421
424
|
markdownContainerRef.current = dom;
|
|
422
425
|
setMountedStatus(true);
|
|
@@ -84,9 +84,11 @@ var genStyle = function(token) {
|
|
|
84
84
|
outline: 'none !important'
|
|
85
85
|
},
|
|
86
86
|
'&-content': _define_property({
|
|
87
|
-
padding
|
|
87
|
+
// 默认 padding,可以通过 contentStyle 覆盖
|
|
88
|
+
// 使用 CSS 变量,允许通过内联样式覆盖
|
|
89
|
+
padding: 'var(--content-padding, 4px 20px)'
|
|
88
90
|
}, "@media (max-width: ".concat(MOBILE_BREAKPOINT, ")"), {
|
|
89
|
-
padding: '4px 4px'
|
|
91
|
+
padding: 'var(--content-padding, 4px 4px)'
|
|
90
92
|
})
|
|
91
93
|
});
|
|
92
94
|
};
|