[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)
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
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- css
- Área
- desktop
Línea de trabajo
Empieza en app/host/src/styles/app.css e inspecciona la altura de línea de .navitem y las reglas de recorte de .navitem__text mencionadas en el informe. Reproduce el problema en Windows con una escala del 125 % y la interfaz en chino, y compara la etiqueta del pie de la barra lateral con las capturas de pantalla proporcionadas. El trabajo estará terminado cuando el trazo horizontal superior de 更 se muestre por completo y las demás etiquetas de la barra lateral sigan siendo legibles.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Area
[GUI] (the desktop app)
Desktop app, Terminal or source?
Desktop app (Windows)
What happened
Correction to what I filed first: the label is not cut at the bottom. One whole stroke is missing from 更 in the sidebar footer's 更多 label — its top horizontal stroke (第一横) is not drawn, so the character reads as damaged, as if something white covered that stroke. It is like this all the time, at the normal window size and the normal sidebar width.
Side by side, same size, 14x, nothing retouched: https://files.catbox.moe/jsjfh3.png
- left: this build — inside the red band (the top 1.5 rows of the glyph) there is no horizontal stroke at all;
- right: the same character at the same 14 px size, rendered normally (Microsoft YaHei, grid-fit) — the top stroke is there, and it is the widest of the four.
Photos from the reporter's own screen: 1:1, as the app draws it · same crop at 10x.
Measured in the photo, in the crop's own device pixels (the display runs at 125% scaling, so 14 CSS px = 17.5 device px):
how many horizontal strokes 更 gets |
their lengths | the row where the top stroke should be | |
|---|---|---|---|
| this build | 3 (y 311 / 314 / 317 in the corner photo; y 6 / 9 / 12 in the 106x27 crop) | 13, 13, 13 | y 310 (crop y 5): 3 dark px in total, longest unbroken run 2 px |
| the same glyph at 14 px, rendered normally | 4 (y 5 / 7 / 9 / 12) | 14, 11, 11, 11 | it is the top bar itself, 14 px long |
更 has four horizontal strokes. This build draws three of them, and in the row where the widest one should be, only 3 pixels out of a 16 px span are darker than luminance 200 — the rest is white.
The same thing touches the top row of the other sidebar labels: 技能 top row has 9 dark px with a longest run of 2, 监控 9 px with a longest run of 2, while 模型 keeps a full 11 px run — so it depends on where a given glyph's ink starts, which is why 更 is the one that visibly loses a stroke.
The two rules in the shipped 0.2.22 CSS that fit these numbers (app/host/src/styles/app.css):
.navitem { … font: 500 var(--st-fs-md)/1 var(--st-font); … }, and--st-fs-md: 14px→ line-height 1 on a 14 px font;.navitem__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }.
With line-height: 1 the ink of a CJK glyph starts right at the top edge of the line box, and .navitem__text clips whatever sticks out of it, so the first ~1 px of the glyph is shaved off; for 更 that first row is exactly its top horizontal stroke. How to fix it is your call — a real line-height on the nav label, or letting the ink out of the clip box, or something else you prefer.
Smallest steps or command that reproduce it
- Windows 11 with the display at 125% scaling, Strata desktop 0.2.22, UI language Chinese, light theme, default density, sidebar at its normal width (not the icon rail).
- Look at the sidebar footer row
⋯ 更多, withv0.2.22and the theme button on the same row — or zoom into that corner. - Compare the
更there with the same character at 14 px in any other Windows program: Strata's copy has no top horizontal stroke.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.22 · engine 0.1.69 (commit b28ca95e3e6847f2d5e317994f253b66716deeaa)
Graphics card, memory and system
NVIDIA GeForce RTX 3060 Laptop GPU · 64 GB RAM · Windows 11, 2560x1440 at 125% display scaling
Model, size and settings
Not a model screen, it is the sidebar chrome. The parts that matter: UI language Chinese, the 14 px nav label, 125% display scaling.
Logs
None: this is pure rendering. No error text appears and no engine or server side is involved.
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Niko1221/Strata
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 5 días
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Niko1221/Strata#7230 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Niko1221/Strata#7214 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Niko1221/Strata#7211 · 3 comentarios ·
Los mantenedores suelen responder en 5 días
Todos los issues de Niko1221/Strata
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/DirectXShaderCompiler#9173 ·
Los mantenedores suelen responder en 2 días
-
feature:config kind:docs os:windows toolchain:cmake triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
arch-based bug niri
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
noctalia-dev/noctalia#5552 ·
Los mantenedores suelen responder en 1 día