[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chip

Aperta Adatta ai principianti
#7,277 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css, typescript
Ambito
desktop

Direzione di ricerca

Inizia da app/host/src/app/Sidebar.tsx per vedere come il chip del motore visualizza l’icona, il testo e il punto di stato, poi leggi le regole correlate in app/host/src/styles/annotation-fixes.css. Sposta il punto all’estremità destra della seconda riga di testo all’interno del chip, mantenendo intatti l’animazione di attività e l’alone. Controlla i layout normale e icon-rail; il lavoro è completato quando il punto resta allineato a destra sulla riga quant/GPU senza essere troppo vicino all’icona.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.css lines 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.

Lingua principale
C++
Stelle
11.6k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.