Files
deepseek-harness/apps/web/tests/expected/models-settings/empty.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

2.1 KiB
Raw Blame History

  • dialog "设置":
    • text: 设置
    • button "打开配置文件"
    • button "关闭"
    • navigation:
      • button "通用设置"
      • button "模型"
      • button "内置插件"
      • button "Agent 预设"
    • heading "模型" [level=2]
    • paragraph: 填入各提供商的 API 密钥即可使用其模型。
    • list
    • tablist "添加方式":
      • tab "第三方模型提供商" [selected]
      • tab "自定义模型 API"
    • paragraph: 从内置目录中选择 OpenAI、Anthropic、Kimi 等提供商,填入其 API 密钥即可使用。
    • tabpanel "第三方模型提供商":
      • text: 提供商
      • combobox "提供商":
        • option "amazon-bedrock"
        • option "ant-ling"
        • option "anthropic"
        • option "azure"
        • option "baseten"
        • option "cerebras"
        • option "cloudflare-ai-gateway"
        • option "cloudflare-workers-ai"
        • option "deepseek"
        • option "fireworks"
        • option "github-copilot"
        • option "google"
        • option "google-vertex"
        • option "groq"
        • option "huggingface"
        • option "kimi-coding"
        • option "meta"
        • option "minimax"
        • option "minimax-cn" [selected]
        • option "mistral"
        • option "moonshotai"
        • option "moonshotai-cn"
        • option "nvidia"
        • option "openai"
        • option "openai-codex"
        • option "opencode"
        • option "opencode-go"
        • option "openrouter"
        • option "qwen-token-plan"
        • option "qwen-token-plan-cn"
        • option "qwen-token-plan-individual"
        • option "radius"
        • option "together"
        • option "vercel-ai-gateway"
        • option "xai"
        • option "xiaomi"
        • option "xiaomi-token-plan-ams"
        • option "xiaomi-token-plan-cn"
        • option "xiaomi-token-plan-sgp"
        • option "zai"
        • option "zai-coding-cn"
      • text: API 密钥
      • button "认证说明": "?"
      • textbox "API 密钥":
        • /placeholder: 留空使用环境认证(MINIMAX_CN_API_KEY)
      • paragraph: 未检测到环境变量。请填写 API 密钥,或设置环境变量 MINIMAX_CN_API_KEY。
      • group: 自定义设置
      • button "取消"
      • button "保存"