Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

fix(ui): thicker stepped slider with a concentric 4px-inset knob

Marlab4983bb095d9
diff --git a/ui/design/components/stops.css b/ui/design/components/stops.css
index 22c9fc4..8d2cae7 100644
--- a/ui/design/components/stops.css
+++ b/ui/design/components/stops.css
@@ -1,13 +1,14 @@
/* 档位滑块:几档离散的值(模型选择器里的性价比、模型智能)。和开关一个样子:圆头轨道、圆钮在轨道里,
填充 = 主操作色(浅色墨、深色黄绿),从左头一直填到圆钮。每一档一个小点,填充上的点用前景色。
+ 比开关粗一号:圆钮四周留 4px,拉到头时圆钮和轨道的圆头是同心圆(圆钮半径 = 轨道半径 − 留白)。
不在任何一档上(.custom):没有圆钮和填充,只剩轨道和点。
结构:<div role="slider" class="stops" style="--stops-at: 0…1"> .stops-fill .stops-dot(--stops-i)×n .stops-knob
位置都用 transform 移(容器查询单位 cqw = 轨道宽),只给 transform / opacity 做动画。 */
.stops {
- --stops-h: 20px; /* 和开关同高 */
- --stops-pad: var(--space-0-5);
+ --stops-h: var(--ctl-md); /* 比开关粗一号:面板里的主角 */
+ --stops-pad: var(--space-1);
--stops-knob-d: calc(var(--stops-h) - 2 * var(--stops-pad));
- --stops-dot-d: 4px;
+ --stops-dot-d: 5px;
--stops-track: var(--switch-off);
--stops-track-hover: var(--switch-off-hover);
--stops-fill-bg: var(--primary);