fix: soften the transition above the chat composer

Add a theme-aware 16px fade above the composer to soften the clipped message edge without changing layout or pointer interactions. Document the treatment in the UI design system.

Release note: 聊天输入区顶部增加淡渐变,让消息与输入框之间的衔接更自然,并适配浅色和深色主题。
This commit is contained in:
mesalogo
2026-10-05 21:00:44 +08:00
parent 4bb7573b10
commit edf019aaa7
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -7785,6 +7785,7 @@ button > svg {
}
.composer-wrap {
position: relative;
width: 100%;
max-width: 100%;
min-width: 0;
@@ -7795,6 +7796,17 @@ button > svg {
background: var(--surface-raised);
}
.composer-wrap::before {
position: absolute;
right: 0;
bottom: 100%;
left: 0;
height: var(--space-4);
background: linear-gradient(to bottom, transparent, var(--surface-raised));
content: "";
pointer-events: none;
}
.composer {
width: 100%;
max-width: 100%;