@adminforth/agent 3.1.7 → 3.1.8

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.
@@ -26,7 +26,7 @@
26
26
  }"
27
27
  :style="{
28
28
  maxWidth: agentStore.isFullScreen ? agentStore.MAX_WIDTH+'rem' : '100%',
29
- paddingBottom: showBottomSpacer ? `max(0px, 100cqh - ${lastTurnHeight}px)` : undefined,
29
+ paddingBottom: showBottomSpacer ? `max(${MASK_HEIGHT}px, 100cqh - ${lastTurnHeight}px)` : `${MASK_HEIGHT}px`,
30
30
  transition: `
31
31
  max-width ${agentTransitions.TRANSITION_DURATION}ms ease-in-out,
32
32
  transform ${agentTransitions.TRANSITION_DURATION}ms ease-in-out
@@ -146,6 +146,7 @@ const messagesRefs = ref<Array<HTMLElement | null>>([]);
146
146
  *
147
147
  * The spacer is the scroll element's padding-bottom, resolved in CSS (100cqh minus the last turn), so
148
148
  * it follows the container height in the same layout pass, e.g. when the prompt textarea grows.
149
+ * It is never less than the bottom fade of the mask, so at the bottom the last message isn't faded out.
149
150
  * It is padding rather than a child element on purpose: custom-vue-scrollbar measures the viewport and
150
151
  * the content with separate debounced observers, and when both resize together it briefly computes a
151
152
  * wrong scroll range and flashes the scrollbar thumb. Padding keeps the content size unchanged.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",