[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chip
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 86/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Bắt đầu từ app/host/src/app/Sidebar.tsx để xem chip engine hiển thị biểu tượng, văn bản và chấm trạng thái như thế nào, sau đó đọc các quy tắc liên quan trong app/host/src/styles/annotation-fixes.css. Chuyển chấm sang mép phải của dòng văn bản thứ hai bên trong chip, đồng thời giữ nguyên hiệu ứng hoạt ảnh bận và quầng sáng. Kiểm tra bố cục thông thường và icon-rail; hoàn tất khi chấm vẫn căn phải trên dòng quant/GPU mà không bị sát biểu tượng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
[GUI] (the desktop app)
What do you want to do?
Please move the engine chip's status dot — the one that breathes while the model is working — off the model icon's bottom-right corner and put it at the right end of the second line inside the chip, on the same line as IQ3_S · GPU 1, flush right, still inside the card.
Annotated photo from the reporter's own screen (3x, nothing redrawn): https://files.catbox.moe/frhhmy.png
- red ring: where the dot is today — it hangs off the model icon's bottom-right corner, in the gap between the icon and the text;
- green ring: where it is wanted — the same line as the quant / GPU text, right-aligned, inside the card; the dashed line marks that line.
Numbers measured in that screenshot, in device pixels (the display runs at 125% scaling, so 1 CSS px = 1.25 device px):
- the chip's border box: x 16..301, y 53..111 — a 228 CSS px wide, 46 CSS px tall card;
- the dot's blue pixels: x 51..57, y 90..96, i.e. right on the icon's corner;
- in the busy state the dot also gets a 4 px halo (
box-shadow: 0 0 0 4px var(--st-info-tint)), so the visible mark is larger than the dot itself and spreads over the icon; - the second line's text occupies x 68..145, so from about x 150 to the card's right padding (x ≈ 285) that line is empty — about 110 CSS px of free space. A dot at the right end fits with room to spare and touches nothing.
Why the placement is worth changing: the dot is the only sign that the engine is busy, and today it reads as part of the model icon rather than as the engine's state. With a long model name the first line ellipsizes (.enginechip__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }) while the dot stays where it is, so it still crowds the icon; at the right end of the line it keeps its place whatever the model is called, and it never lands between other content. In icon-rail mode the dot is drawn bigger still (.app[data-rail='true'] .enginechip__dot { width: 10px; height: 10px }), which is exactly where the icon's corner is the most crowded.
What the code does today (main, 2026-11-27), for orientation only — how to reach the result is yours to decide:
app/host/src/app/Sidebar.tsx: the dot is a child of the icon wrapper —<span className="enginechip__family"><Icon … size={20}/><span className="enginechip__dot"/></span>;app/host/src/styles/annotation-fixes.csslines 442-443:
.enginechip__family { position: relative; width: 24px; height: 24px; display: grid; place-items: center; flex: none; color: var(--st-icon); }
.enginechip .enginechip__family .enginechip__dot { position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--st-surface); }
so the dot is anchored to the icon, not to the row. Anchoring it to the end of .enginechip__text — grid, an absolutely positioned dot on the chip, a flex row holding the sub line plus the dot, whatever you prefer — gets the same result.
What do you do today instead?
Nothing: it is a placement change, not something that blocks work. The dot is visible and does its job; it just sits where it crowds the icon instead of where it is free.
Strata 0.2.22 · engine strata-terminal 0.1.69 (commit b28ca95e3e6847f2d5e317994f253b66716deeaa) · Windows 11, 2560x1440 at 125% display scaling, UI language Chinese.
- Ngôn ngữ chính
- C++
- Star
- 11.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Niko1221/Strata
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 5 ngày
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Niko1221/Strata#7276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Niko1221/Strata#7230 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Niko1221/Strata#7214 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Niko1221/Strata#7211 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của Niko1221/Strata
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/DirectXShaderCompiler#9173 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
feature:config kind:docs os:windows toolchain:cmake triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
arch-based bug niri
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
noctalia-dev/noctalia#5552 ·
Maintainer thường phản hồi trong vòng 1 ngày