dsh-remote-panel 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +42 -12
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1159,6 +1159,8 @@ window.__ModuleLoader__.load({
|
|
|
1159
1159
|
.dsh-mobile-clear-workspace[data-none="true"] { display: none !important; }
|
|
1160
1160
|
/* 抽屉/遮罩打开时顶栏按钮让位 */
|
|
1161
1161
|
html.dsh-drawer-open .dsh-mobile-newchat { display: none !important; }
|
|
1162
|
+
/* 「+」是固定定位 + 内联 top:6px,顶栏被安全区顶下去后它会错位,这里拉回同一基线 */
|
|
1163
|
+
.dsh-mobile-newchat { top: calc(6px + var(--dsh-safe-top, 0px)) !important; }
|
|
1162
1164
|
|
|
1163
1165
|
/* 空态:鱼标按原型放大并竖排到标题上方;标题 22/650,收掉「预览版」角标 */
|
|
1164
1166
|
.pXSMma_headline { flex-direction: column !important; align-items: center !important; gap: 14px !important; }
|
|
@@ -1170,26 +1172,54 @@ window.__ModuleLoader__.load({
|
|
|
1170
1172
|
.pXSMma_previewBadge { display: none !important; }
|
|
1171
1173
|
/* 原生把「问候语 + 输入条」一起居中;手机按原型拆开:
|
|
1172
1174
|
问候语留在屏幕中间(原生居中),输入条钉到底部 */
|
|
1173
|
-
/* 输入条下方那排统计(轮次/步数、token
|
|
1174
|
-
|
|
1175
|
+
/* 输入条下方那排统计(轮次/步数、token、缓存):手机上会撑高输入区,
|
|
1176
|
+
按「托盘状态」的思路挪到右上角,做成一行半透明小字,不再占输入条的垂直空间 */
|
|
1175
1177
|
.uV2eYG_dock {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1178
|
+
position: fixed !important;
|
|
1179
|
+
/* 托盘放在顶部安全区里(刘海那一条),靠右、避开「+」按钮:
|
|
1180
|
+
有安全区时就在安全区中线上,没有时贴着顶栏右边 */
|
|
1181
|
+
top: max(2px, calc(var(--dsh-safe-top, 0px) - 28px)) !important;
|
|
1182
|
+
/* 有安全区时右移贴近屏幕边(此时不会和「+」同高),没有时让开「+」 */
|
|
1183
|
+
right: calc(58px - min(48px, var(--dsh-safe-top, 0px))) !important;
|
|
1184
|
+
left: auto !important;
|
|
1185
|
+
width: auto !important;
|
|
1186
|
+
max-width: calc(100vw - 72px) !important;
|
|
1187
|
+
display: flex !important;
|
|
1188
|
+
flex-wrap: nowrap !important;
|
|
1189
|
+
align-items: center !important;
|
|
1190
|
+
column-gap: 8px !important;
|
|
1191
|
+
margin: 0 !important;
|
|
1192
|
+
padding: 3px 9px !important;
|
|
1193
|
+
border-radius: 999px !important;
|
|
1194
|
+
background: rgba(18, 18, 20, .92) !important;
|
|
1195
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
|
|
1196
|
+
box-sizing: border-box !important;
|
|
1197
|
+
font-size: 10.5px !important;
|
|
1198
|
+
line-height: 15px !important;
|
|
1199
|
+
z-index: 56 !important;
|
|
1200
|
+
overflow: hidden !important;
|
|
1201
|
+
transform: none !important;
|
|
1181
1202
|
}
|
|
1182
|
-
/*
|
|
1183
|
-
于是每颗都被挤到单独一行。这里把它实体化成一行,两颗才能并排 */
|
|
1203
|
+
/* 前两颗外面那层是 display:contents,Chrome 里不参与 flex 计算,实体化才能并排 */
|
|
1184
1204
|
.uV2eYG_dock > div {
|
|
1185
1205
|
display: flex !important;
|
|
1186
1206
|
align-items: center !important;
|
|
1187
|
-
gap:
|
|
1207
|
+
gap: 8px !important;
|
|
1188
1208
|
min-width: 0 !important;
|
|
1189
1209
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1210
|
+
.uV2eYG_dock [data-composer-stat] { min-width: 0 !important; }
|
|
1211
|
+
/* 胶囊里的 label 自带 max-width,会被截成「2 轮 8 步 · 211 …」;托盘里放开 */
|
|
1212
|
+
.uV2eYG_dock [class*="_label"] {
|
|
1213
|
+
max-width: none !important;
|
|
1214
|
+
overflow: visible !important;
|
|
1215
|
+
text-overflow: clip !important;
|
|
1216
|
+
white-space: nowrap !important;
|
|
1217
|
+
}
|
|
1218
|
+
/* 托盘只留两项:轮次/步数 + token/缓存;分支与占比收掉(面板里可见) */
|
|
1192
1219
|
[data-composer-stat="git-branch"] { display: none !important; }
|
|
1220
|
+
.uV2eYG_dock > span[class*="_root"] { display: none !important; }
|
|
1221
|
+
/* 没有统计时不渲染空壳(hero 页就是这样) */
|
|
1222
|
+
.uV2eYG_dock:empty { display: none !important; }
|
|
1193
1223
|
|
|
1194
1224
|
/* 输入条座位顶部有一段渐隐(DSH 原本渐到 #151517),在纯黑底上会显出一条灰带,
|
|
1195
1225
|
这里把终点色换成纯黑,观感才对得上;底部那行状态(轮次/token/缓存)同理 */
|