dsh-bottom-info-bar 1.25.0 → 1.25.2

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.
Files changed (2) hide show
  1. package/lib/client.js +18 -13
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -999,8 +999,10 @@ function installStyles() {
999
999
  /* 状态标签统一软底胶囊(2026-11-12 重设计,与 DSH 原生状态徽章同语言):
1000
1000
  底色由文字色派生(color-mix currentColor 14%)—— 字段自定义色照常生效(改色时底色跟着走),
1001
1001
  明暗主题都不引入新的前景/背景配对;去掉旧 1px 描边胶囊,色块自成形,更轻、更原生。
1002
- 高度锁 16px 与信息栏行高对齐;超长引导文案缩略、完整说明保留在 title 悬停。 */
1003
- .bi-err, .bi-stale { display: inline-flex; align-items: center; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 100%; height: 16px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--bi-state-alert); font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
1002
+ 高度锁 16px;vertical-align: middle 让 16px 胶囊在 20px 文字行里取文本的光学中心,
1003
+ 不再因 top 对齐把上沿顶出整行(2026-11-13 用户报告的「重启生效」上沿超出)。
1004
+ 超长引导文案缩略、完整说明保留在 title 悬停。 */
1005
+ .bi-err, .bi-stale { display: inline-flex; align-items: center; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 100%; height: 16px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--bi-state-alert); font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
1004
1006
  .bi-muted{ color: var(--bi-label-supporting); }
1005
1007
  /* 低余额/低额度是数值的状态修饰,而非独立组件:无框“低”字避免制造第二个视觉焦点。 */
1006
1008
  .bi-low-status { margin-left: 3px; color: var(--bi-state-alert); font-weight: 600; }
@@ -1012,7 +1014,12 @@ function installStyles() {
1012
1014
  /* 自更新状态短标记:只在「已下载待重启」或「上次自动更新失败」时出现,重启/修复后自动消失。
1013
1015
  与 .bi-update 区分:它不需要用户点击,用默认光标 + 软底胶囊(同 .bi-err 语法),
1014
1016
  明确「这是状态标签,不是可点链接」。失败态用更高浓度底色分层,不换颜色不加字重。 */
1015
- .bi-update-badge{ margin-left: 6px; display: inline-flex; align-items: center; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 100%; height: 16px; padding: 0 7px; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--bi-state-alert); font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; cursor: default; }
1017
+ /* 与 .bi-err/.bi-stale 同一套垂直居中口径:16px 胶囊按文本光学中心对齐,不再上沿顶出。 */
1018
+ .bi-update-badge{ margin-left: 6px; display: inline-flex; align-items: center; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 100%; height: 16px; padding: 0 7px; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--bi-state-alert); font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; cursor: default; }
1019
+ /* 胶囊的字段容器撑满当前行高并 flex 居中:不同字号下行高会变成 20/24/…,
1020
+ vertical-align: middle 仍会低 0.6–1.1px;这里直接按行高中线对齐,和左右文字同一条中线。
1021
+ 只作用于两个更新标记字段,不碰其它 data-field 的文本基线。 */
1022
+ .bi-row2 span[data-field="updateNotice"], .bi-row2 span[data-field="updateFailure"] { display: inline-flex; align-items: center; height: var(--bi-line); }
1016
1023
  /* 失败态比「待重启」(可预期的正常流程)更需要被看见:底色浓度分层(24% vs 14%)。 */
1017
1024
  .bi-update-badge--error{ background: color-mix(in srgb, currentColor 24%, transparent); }
1018
1025
  /* 视觉能力是模型属性,不是告警:电光蓝实色、白字;高度收紧到字形范围内,避免压过同一行文字。 */
@@ -2064,15 +2071,16 @@ function bibSetInstallStyles() {
2064
2071
  :root[data-dsh-app-layout] .bib-go-srow--stack, :root[data-dsh-go-island] .bib-go-srow--stack { flex-direction: column; align-items: stretch; gap: 8px; }
2065
2072
  :root[data-dsh-app-layout] .bib-go-srow--stack .bib-go-srow-control, :root[data-dsh-go-island] .bib-go-srow--stack .bib-go-srow-control { flex: none; justify-content: flex-start; }
2066
2073
  }
2067
- :root[data-dsh-app-layout] .bib-go-preview, :root[data-dsh-go-island] .bib-go-preview { display: grid; grid-template-columns: calc((100% - 28px) / 3) calc((100% - 28px) / 3) calc((100% - 28px) / 3) 28px; align-items: stretch; height: 56px; padding: 0 4px 0 0; box-sizing: border-box; }
2068
- :root[data-dsh-app-layout] .bib-go-preview-col, :root[data-dsh-go-island] .bib-go-preview-col { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 12px; }
2069
- :root[data-dsh-app-layout] .bib-go-preview-col:first-child, :root[data-dsh-go-island] .bib-go-preview-col:first-child { padding-left: 16px; }
2070
- :root[data-dsh-app-layout] .bib-go-preview-cap, :root[data-dsh-go-island] .bib-go-preview-cap { margin-bottom: 2px; font-size: var(--dshgo-font-caption, 12px); font-weight: 500; line-height: 16px; color: var(--dshgo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
2074
+ /* 预览卡与真实卡同一套几何(2026-11-13 用户指出):56 高、20 圆角、16 页边、
2075
+ 三列按 content 均分且无 chevron;不再用 28px 箭头列和每列 12px 内边距把比例拉歪。 */
2076
+ :root[data-dsh-app-layout] .bib-go-preview, :root[data-dsh-go-island] .bib-go-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 0 16px; box-sizing: border-box; }
2077
+ :root[data-dsh-app-layout] .bib-go-preview-col, :root[data-dsh-go-island] .bib-go-preview-col { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; max-width: calc((100% - 20px) / 3); padding: 0; }
2078
+ :root[data-dsh-app-layout] .bib-go-preview-col:last-child, :root[data-dsh-go-island] .bib-go-preview-col:last-child { align-items: flex-end; text-align: right; }
2079
+ :root[data-dsh-app-layout] .bib-go-preview-cap, :root[data-dsh-go-island] .bib-go-preview-cap { margin-bottom: 2px; font-size: var(--dshgo-font-caption, 12px); font-weight: 500; line-height: 16px; letter-spacing: 0.2px; color: var(--dshgo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
2071
2080
  :root[data-dsh-app-layout] .bib-go-preview-val, :root[data-dsh-go-island] .bib-go-preview-val { font-size: var(--dshgo-font-value, 16px); font-weight: 600; line-height: var(--dshgo-lh-value, 20px); color: var(--dshgo-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
2072
2081
  :root[data-dsh-app-layout] .bib-go-preview-ring, :root[data-dsh-go-island] .bib-go-preview-ring { display: flex; align-items: center; gap: 5px; color: var(--dshgo-accent); }
2073
2082
  :root[data-dsh-app-layout] .bib-go-preview-ring span, :root[data-dsh-go-island] .bib-go-preview-ring span { color: var(--dshgo-ink); }
2074
- :root[data-dsh-app-layout] .bib-go-preview-chevron, :root[data-dsh-go-island] .bib-go-preview-chevron { display: flex; align-items: center; justify-content: center; color: var(--dshgo-faint); }
2075
- :root[data-dsh-app-layout] .bib-go-preview-card, :root[data-dsh-go-island] .bib-go-preview-card { padding: 0; }
2083
+ :root[data-dsh-app-layout] .bib-go-preview-card, :root[data-dsh-go-island] .bib-go-preview-card { height: 56px; padding: 0; box-sizing: border-box; }
2076
2084
  :root[data-dsh-app-layout] .bib-go-feedback, :root[data-dsh-go-island] .bib-go-feedback { padding: 0 4px; font-size: var(--dshgo-font-desc, 13px); color: var(--dshgo-muted); }
2077
2085
  :root[data-dsh-app-layout] .bib-go-footer, :root[data-dsh-go-island] .bib-go-footer { padding: 8px 4px 0; text-align: center; font-size: var(--dshgo-font-caption, 12px); line-height: 1.5; color: var(--dshgo-faint); }
2078
2086
  :root[data-dsh-app-layout] .bib-go-page .bib-set-dots, :root[data-dsh-go-island] .bib-go-page .bib-set-dots { display: flex; align-items: center; gap: 6px; }
@@ -3714,10 +3722,7 @@ function BibSetDshGoPage(props) {
3714
3722
  React.createElement('svg', { viewBox: '0 0 20 20', width: 17, height: 17, 'aria-hidden': 'true' },
3715
3723
  React.createElement('circle', { cx: 10, cy: 10, r: 7.5, fill: 'none', stroke: 'currentColor', strokeOpacity: 0.25, strokeWidth: 2.5 }),
3716
3724
  React.createElement('circle', { cx: 10, cy: 10, r: 7.5, fill: 'none', stroke: 'currentColor', strokeWidth: 2.5, strokeLinecap: 'round', strokeDasharray: 47.1, strokeDashoffset: 32.5, transform: 'rotate(-90 10 10)' })),
3717
- React.createElement('span', null, '31%'))),
3718
- React.createElement('span', { className: 'bib-go-preview-chevron', 'aria-hidden': 'true' },
3719
- React.createElement('svg', { viewBox: '0 0 16 16', width: 16, height: 16 },
3720
- React.createElement('path', { d: 'M4 6l4 4 4-4', fill: 'none', stroke: 'currentColor', strokeWidth: 1.5, strokeLinecap: 'round', strokeLinejoin: 'round' })))));
3725
+ React.createElement('span', null, '31%')))));
3721
3726
  const colorRows = hostFields.filter(function (field) { return field.noColor !== true; }).map(function (field) {
3722
3727
  return React.createElement(BibSetGoRow, {
3723
3728
  key: 'c-' + field.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-bottom-info-bar",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
4
4
  "description": "Shows the current model, balance and spend under the composer.",
5
5
  "keywords": [
6
6
  "deepseek",