Extend the speed graph to 150 pixels

Reallocate another ten pixels from the zero-speed label minimum to the sparkline while keeping the header control footprint unchanged.
This commit is contained in:
Sucukdeluxe
2026-08-26 15:12:18 +02:00
parent a4010d8984
commit 16037b264f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -596,8 +596,8 @@ describe("bandwidth chart palette", () => {
it("uses the spare zero-speed label space for a longer sparkline", () => {
const css = readFileSync(new URL("../src/renderer/styles.css", import.meta.url), "utf8");
expect(css).toMatch(/\.speed-sparkline-canvas\s*\{[^}]*width:\s*140px;/s);
expect(css).toMatch(/\.speed-sparkline-value\s*\{[^}]*min-width:\s*42px;/s);
expect(css).toMatch(/\.speed-sparkline-canvas\s*\{[^}]*width:\s*150px;/s);
expect(css).toMatch(/\.speed-sparkline-value\s*\{[^}]*min-width:\s*32px;/s);
});
it("aligns the idle speed line to one physical pixel at every display scale", () => {