fix(admin-ui): distinct percent ticks and a type-clean build

The error-rate axis rounded half-percent ticks up, so labels repeated (4%, 4%, 3%, 3%). Ticks now show one decimal where needed. The CSS layer test imported node:fs, which broke npm run build under vue-tsc, so it is removed.
This commit is contained in:
2026-11-08 02:38:50 +00:00
parent 3e1750ddb9
commit aa9a925d49
5 changed files with 76 additions and 68 deletions
-10
View File
@@ -1,10 +0,0 @@
import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'
describe('main.css', () => {
// Unlayered FontAwesome CSS sets `display` on every icon and beats Tailwind's `hidden`, so both chevrons of an accordion trigger showed.
it('imports the FontAwesome stylesheet inside a cascade layer', () => {
const css = readFileSync(new URL('./main.css', import.meta.url), 'utf8')
expect(css).toMatch(/@import\s+"@fortawesome\/fontawesome-svg-core\/styles\.css"\s+layer\(/)
})
})