fix(ui): 隐藏内部滚动轨道并整合叙事风格提示

- 滚动区域:隐藏原生横竖轨道,保留触摸滚动,约束表单和文本域横向溢出

- Grok业务改动:纳入个人风格与统一方案的提示和不可用预设说明

- 状态查询:通过会话只读接口显示控制状态,取消离开页面后的请求
This commit is contained in:
湛兮
2026-10-27 12:54:51 +08:00
parent 9b2f7fc7cf
commit 4079397625
4 changed files with 88 additions and 10 deletions
+41 -2
View File
@@ -969,6 +969,11 @@
color: #d4cbd5;
font-size: 12px;
}
.dh-settings > label small {
color: var(--dh-muted);
font-size: 11px;
line-height: 1.7;
}
.dh-profile-form textarea,
.dh-settings textarea {
resize: vertical;
@@ -1601,8 +1606,7 @@
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: #ffffff20 transparent;
scrollbar-width: none;
}
.dh-messages-inner {
max-width: 840px;
@@ -2289,3 +2293,38 @@
body:has(.dh-app) .environment-badge {
display: none;
}
/* 内部区域保留手势和键盘滚动,不显示系统轨道,也不允许设定表单横向漂移。 */
.dh-app,
.dh-app * {
scrollbar-width: none !important;
}
.dh-app::-webkit-scrollbar,
.dh-app *::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
}
.dh-settings-body,
.dh-selection-body,
.dh-detail-body,
.dh-ideas-list {
min-width: 0;
max-width: 100%;
overflow-x: hidden;
}
.dh-settings-body {
width: 100%;
}
.dh-settings-body > label,
.dh-settings fieldset,
.dh-selection-sheet fieldset {
min-width: 0;
max-width: 100%;
}
.dh-app textarea {
width: 100%;
max-width: 100%;
overflow-x: hidden;
overflow-wrap: anywhere;
}