refactor(webui): use container query for prompt rail layout

This commit is contained in:
chengyongru
2026-07-08 12:16:47 +08:00
committed by Xubin Ren
parent 815f15993c
commit c188e96f4e
4 changed files with 34 additions and 117 deletions
+26
View File
@@ -568,4 +568,30 @@
.thread-viewport-scrollbar {
overflow-x: hidden;
}
.thread-viewport {
--thread-message-column-half: 24.75rem;
--thread-prompt-rail-offset: 3.5rem;
container-name: thread-viewport;
container-type: inline-size;
}
.thread-prompt-rail {
display: none;
left: calc(
50% - var(--thread-message-column-half) - var(--thread-prompt-rail-offset)
);
}
@media (min-width: 768px) {
.thread-prompt-rail {
display: block;
}
}
@container thread-viewport (max-width: 58rem) {
.thread-prompt-rail {
display: none;
}
}
}