fix(webui): tighten mobile chat layout and soften transcript edges

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-24 19:29:24 +08:00
1 parent ce885fa31e
commit 8af2d396ab
10 files changed
+183 -26

No files matched your search

+19 -5
View File
@@ -567,6 +567,7 @@
*/
.thread-layout {
--thread-composer-fade-height: 2.25rem;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(min-content, 1fr) auto 0fr;
transition: grid-template-rows 220ms ease-out;
}
@@ -585,23 +586,36 @@
/**
* Keep the transcript and composer visually continuous. The scrollport owns
* the fade because overflow clips its contents before an adjacent overlay
* can soften the edge. The matching in-flow gap keeps the last line fully
* visible once the user reaches the bottom.
* can soften the edge. On phones, the same mask keeps a clear top edge even
* after the initial inset scrolls away. The matching bottom in-flow gap keeps
* the last line fully visible once the user reaches the bottom.
*/
.thread-message-viewport {
--thread-top-clearance: 0px;
--thread-top-fade-height: 0px;
-webkit-mask-image: linear-gradient(
to bottom,
#000 0,
transparent 0,
transparent var(--thread-top-clearance),
#000 var(--thread-top-fade-height),
#000 calc(100% - var(--thread-composer-fade-height)),
transparent 100%
);
mask-image: linear-gradient(
to bottom,
#000 0,
transparent 0,
transparent var(--thread-top-clearance),
#000 var(--thread-top-fade-height),
#000 calc(100% - var(--thread-composer-fade-height)),
transparent 100%
);
}
@media (max-width: 639px) {
.thread-message-viewport {
--thread-top-clearance: 6px;
--thread-top-fade-height: 22px;
}
}
.thread-message-end-gap {
height: var(--thread-composer-fade-height);
}
@@ -1302,7 +1316,7 @@
.thread-composer-form { --composer-action-size: 2.75rem; }
}
/* Narrow composers keep message and permission actions together, with usage below. */
/* Compact composers keep their primary actions on a stable 44px touch grid. */
.thread-composer-form[data-compact-controls] {
--composer-action-size: 2.25rem;
--composer-action-margin: 0.25rem;