plain-design 1.0.0-beta.135 → 1.0.0-beta.136

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,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.135",
3
+ "version": "1.0.0-beta.136",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -67,5 +67,8 @@
67
67
  .ai-chat-box-histories {
68
68
  margin-bottom: $margin;
69
69
  }
70
+ .ai-chat-box-history-prepend {
71
+ margin-bottom: $margin;
72
+ }
70
73
  }
71
74
  }
@@ -103,13 +103,13 @@ export const AiChatBox = designComponent({
103
103
  refer: {},
104
104
  render: () => (
105
105
  <div className={classes.value}>
106
+ {slots.prepend.isExist() && (
107
+ <div className="ai-chat-box-history-prepend">
108
+ {slots.prepend()}
109
+ </div>
110
+ )}
106
111
  {(!!state.histories.length || props.fitHeight || slots.prepend.isExist()) && (
107
112
  <div className="ai-chat-box-histories">
108
- {slots.prepend.isExist() && (
109
- <div className="ai-chat-box-history-item" key="prepend">
110
- {slots.prepend()}
111
- </div>
112
- )}
113
113
  {(() => {
114
114
  const content = state.histories.map((history) => (
115
115
  <div className="ai-chat-box-history-item" key={history.id} data-role={history.role}>