fix(webui): keep prompt rail at original gutter offset

This commit is contained in:
chengyongru 2026-07-07 17:17:39 +08:00 committed by Xubin Ren
parent c188e96f4e
commit ea7f4679f1

View File

@ -570,17 +570,13 @@
} }
.thread-viewport { .thread-viewport {
--thread-message-column-half: 24.75rem;
--thread-prompt-rail-offset: 3.5rem;
container-name: thread-viewport; container-name: thread-viewport;
container-type: inline-size; container-type: inline-size;
} }
.thread-prompt-rail { .thread-prompt-rail {
display: none; display: none;
left: calc( left: 1.75rem;
50% - var(--thread-message-column-half) - var(--thread-prompt-rail-offset)
);
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@ -589,7 +585,7 @@
} }
} }
@container thread-viewport (max-width: 58rem) { @container thread-viewport (max-width: 59rem) {
.thread-prompt-rail { .thread-prompt-rail {
display: none; display: none;
} }