@flexem/chat-box 1.0.8 → 1.0.9

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.
@@ -87,7 +87,7 @@
87
87
  <!-- 消息列表区域 -->
88
88
  <scroll-view
89
89
  class="message-list"
90
- style="margin-top: {{navBarHeight}}px; padding-bottom: {{keyboardHeight > 0 ? (keyboardHeight + inputBarHeight + 40) : (50 + safeAreaBottom + attachmentHeight + inputBarHeight)}}px;"
90
+ style="margin-top: {{navBarHeight}}px; padding-bottom: {{keyboardHeight > 0 ? (keyboardHeight + inputBarHeight + 40) : (55 + safeAreaBottom + attachmentHeight + inputBarHeight)}}px;"
91
91
  scroll-y="true"
92
92
  scroll-into-view="{{scrollToMessage}}"
93
93
  enhanced="true"
@@ -213,10 +213,14 @@
213
213
  .message-list {
214
214
  flex: 1;
215
215
  overflow-y: auto;
216
+ /* 确保始终有滚动能力,即使内容很少 */
217
+ height: 0;
216
218
  }
217
219
 
218
220
  .message-wrapper {
219
221
  padding-bottom: 40rpx;
222
+ /* 设置最小高度为100%+额外空间,确保能够滚动 */
223
+ min-height: calc(100%);
220
224
  }
221
225
 
222
226
  /* 加载更多历史 */
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@flexem/chat-box",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "index.js"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexem/chat-box",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "chat box",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "miniprogram": "miniprogram_dist",