fix: keep agent composer floating without early scroll

This commit is contained in:
jxxghp
2026-06-17 07:15:36 +08:00
parent 2530c3bcd9
commit efc0ae4df6
+7 -1
View File
@@ -1413,6 +1413,9 @@ onScopeDispose(() => {
} }
.agent-assistant-messages { .agent-assistant-messages {
display: flex;
flex-direction: column;
min-block-size: 0;
overflow-y: auto; overflow-y: auto;
overscroll-behavior: contain; overscroll-behavior: contain;
padding-block: 1rem calc(env(safe-area-inset-bottom, 0px) + 12rem); padding-block: 1rem calc(env(safe-area-inset-bottom, 0px) + 12rem);
@@ -1422,11 +1425,13 @@ onScopeDispose(() => {
.agent-assistant-empty { .agent-assistant-empty {
display: flex; display: flex;
flex: 1 1 auto;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-sizing: border-box;
color: rgba(var(--v-theme-on-surface), 0.7); color: rgba(var(--v-theme-on-surface), 0.7);
min-block-size: 100%; min-block-size: 0;
padding-block: 2rem 1.25rem; padding-block: 2rem 1.25rem;
padding-inline: 0.25rem; padding-inline: 0.25rem;
text-align: center; text-align: center;
@@ -1463,6 +1468,7 @@ onScopeDispose(() => {
.agent-assistant-message { .agent-assistant-message {
display: flex; display: flex;
flex: 0 0 auto;
flex-direction: column; flex-direction: column;
margin-block-end: 1rem; margin-block-end: 1rem;
} }