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

Abierto Apto para principiantes
#7,277 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
86/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
css, typescript
Área
desktop

Línea de trabajo

Empieza en app/host/src/app/Sidebar.tsx para ver cómo el chip del motor muestra su icono, texto y punto de estado; después, lee las reglas relacionadas en app/host/src/styles/annotation-fixes.css. Mueve el punto al extremo derecho de la segunda línea de texto dentro del chip, manteniendo intactos la animación de actividad y el halo. Comprueba las disposiciones normal y de icon-rail; estará listo cuando el punto quede alineado a la derecha en la línea quant/GPU sin apretar el icono.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.