feat(webui): expand long drafts and refine chat scrollbars (#6709)
* feat(webui): expand long drafts and refine chat scrollbars * test(webui): synchronize browser setup and isolate locale cases * test(webui): wait for the About fixture before measuring layout
This commit is contained in:
1 parent
db430df3f6
commit
cab49a1c66
20 files changed
+271
-59
No files matched your search
@@ -919,6 +919,43 @@
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Keep the native drag target wider than the visible thumb. */
|
||||
@media (forced-colors: none) {
|
||||
@supports selector(::-webkit-scrollbar) {
|
||||
html:not(.native-host) .inset-scrollbar {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: auto;
|
||||
}
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar {
|
||||
width: 14px;
|
||||
}
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar-button {
|
||||
display: none;
|
||||
}
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar-track {
|
||||
margin-block: 6px;
|
||||
background: transparent;
|
||||
}
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar-thumb {
|
||||
min-height: 28px;
|
||||
border-inline: 4px solid transparent;
|
||||
border-inline-end-width: 6px;
|
||||
border-radius: 999px;
|
||||
background: var(--scrollbar-thumb) padding-box;
|
||||
}
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar-thumb:hover,
|
||||
html:not(.native-host) .inset-scrollbar::-webkit-scrollbar-thumb:active {
|
||||
background-color: var(--scrollbar-thumb-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (forced-colors: active) {
|
||||
html:not(.native-host) .inset-scrollbar {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Mobile responsive safety net — keep the chat viewport + composer inside a
|
||||
* narrow viewport (see #4693). These are containment rules: long markdown
|
||||
@@ -1522,6 +1559,20 @@
|
||||
.thread-composer-collapsible-layout {
|
||||
container: composer-layout / inline-size;
|
||||
}
|
||||
.thread-composer-input[data-expandable] {
|
||||
--composer-edit-room: max(6rem, calc(var(--app-viewport-height, 100dvh) - 11rem));
|
||||
--composer-input-limit: min(260px, calc(var(--composer-edit-room) * 0.7));
|
||||
}
|
||||
.thread-composer-input[data-expanded] {
|
||||
--composer-input-limit: min(38rem, var(--composer-edit-room));
|
||||
}
|
||||
.thread-composer-input:is([data-overflowing], [data-expanded]) {
|
||||
margin-block: 0.375rem;
|
||||
}
|
||||
.thread-composer-input > textarea {
|
||||
max-height: var(--composer-input-limit, 260px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
/* A wrapped placeholder must not resize the empty composer. */
|
||||
.thread-composer-input textarea:placeholder-shown {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in new issue
Block a user