Files
deepseek-harness/apps/web/tests/expected/models-settings/declared-edit.expected.md
T
Zrs000 aeb71f1061 feat(web): reflow the Settings panel at narrow widths
Below 768px the panel fills the viewport and the rail becomes the horizontal
section strip the Web product uses: the title shares the first row with the
header actions and close control, the registered section cells scroll sideways
on the second, and the active section fills the rest. Cells keep their labels
whole and the strip scrolls instead of truncating, so a registrant's label
length or a longer section roster cannot wrap or clip a name.

The panel places its four seats (title, header, navigation, options) on one
grid, so the desktop rail keeps its 188px track and 64px first row. Preference
rows drop their 48px control gutter and the Appearance cubes share one row at
that width.
2026-10-20 18:07:51 +08:00

3.4 KiB

  • dialog "设置":
    • text: 设置
    • button "打开配置文件"
    • button "关闭"
    • navigation:
      • button "通用设置"
      • button "模型"
      • button "内置插件"
      • button "Agent 预设"
    • heading "模型" [level=2]
    • paragraph: 填入各提供商的 API 密钥即可使用其模型。
    • list:
      • listitem:
        • text: minimax-cn
        • img "API 密钥已配置"
        • button "编辑 minimax-cn": 编辑
        • button "删除 minimax-cn": 删除
      • listitem:
        • text: Acme Gateway 自定义
        • button "编辑 Acme Gateway (acme-gateway)": 编辑
        • button "删除 Acme Gateway (acme-gateway)": 删除
        • text: Acme Gateway acme-gateway API 密钥
        • textbox "API 密钥":
          • /placeholder: 输入 API 密钥
        • group:
          • text: 自定义设置 显示名称
          • textbox "显示名称":
            • /placeholder: acme-gateway
            • text: Acme Gateway
          • text: API 地址
          • textbox "API 地址":
          • text: API 协议
          • combobox "API 协议":
            • option "OpenAI Chat Completions" [selected]
            • option "OpenAI Responses"
            • option "Anthropic Messages"
          • region "模型目录":
            • text: 模型目录 已自定义模型目录
            • button "恢复默认模型"
            • button "获取可用模型"
            • textbox "模型 ID 1":
              • /placeholder: 模型 ID
              • text: acme-large
            • textbox "显示名称 1":
              • /placeholder: 显示名称
            • button "模型选项 1" [expanded]
            • button "删除模型 1"
            • text: 上下文窗口
            • textbox "上下文窗口 1":
              • /placeholder: 1M
            • text: 最大输出 token 数
            • textbox "最大输出 token 数 1":
              • /placeholder: 128K
            • group "输入类型 1":
              • text: 输入类型
              • checkbox "文本" [checked]
              • text: 文本
              • checkbox "图片" [checked]
              • text: 图片
            • group "推理等级 1":
              • text: 推理等级
              • button "推理等级说明": "?"
              • switch "推理等级 1" [checked]
              • combobox "档位 1":
                • option "off" [selected]
                • option "minimal"
                • option "medium"
                • option "xhigh"
                • option "max"
              • textbox "off API 参数值" [disabled]:
                • /placeholder: 关闭思考
              • button "删除档位 off"
              • combobox "档位 2":
                • option "minimal"
                • option "low" [selected]
                • option "medium"
                • option "xhigh"
                • option "max"
              • textbox "low API 参数值":
                • /placeholder: low
                • text: low
              • button "删除档位 low"
              • combobox "档位 3":
                • option "minimal"
                • option "medium"
                • option "high" [selected]
                • option "xhigh"
                • option "max"
              • textbox "high API 参数值":
                • /placeholder: high
                • text: high
              • button "删除档位 high"
              • button "添加档位"
            • button "添加模型"
        • button "取消"
        • button "保存"
    • button "添加模型提供商"