- the APDU list's 12px rule is folded into the global scrollbar style, so the side panel, APDU detail pane, dialogs (file-diff body), session lists/grid and the hex views' horizontal bars all use the same 12px bar with a 6px rounded thumb — no per-element overrides remain to drift, and the horizontal bars get an explicit height instead of the browser default - Node test pins the global rule (12px width/height, 6px thumb radius) and the absence of per-element overrides; 527 Python + 55 Node tests - SW cache simtrace-analyser-v75 (cosmetic, no version bump)
24 lines
985 B
JavaScript
24 lines
985 B
JavaScript
// Scrollbar styling: every pane shares one global rule (12px bars, 6px
|
|
// rounded thumb) — the APDU list used to be 12px while the side panel,
|
|
// detail pane, dialogs and session lists fell back to a 6px default.
|
|
|
|
const { test } = require('node:test');
|
|
const assert = require('node:assert');
|
|
const { loadSrc } = require('./helpers.js');
|
|
|
|
const src = loadSrc();
|
|
|
|
test('every pane uses the global 12px scrollbar rule', () => {
|
|
assert.match(src, /::-webkit-scrollbar \{ width: 12px; height: 12px; \}/);
|
|
assert.match(
|
|
src,
|
|
/::-webkit-scrollbar-thumb \{ background: var\(--scrollbar-thumb\); border-radius: 6px; \}/);
|
|
assert.match(src, /::-webkit-scrollbar-track \{ background: var\(--scrollbar-track\); \}/);
|
|
});
|
|
|
|
test('no per-element scrollbar overrides or thin default remain', () => {
|
|
assert.doesNotMatch(src, /\.apdu-list::-webkit-scrollbar/);
|
|
assert.doesNotMatch(src, /\.side-panel::-webkit-scrollbar/);
|
|
assert.doesNotMatch(src, /::-webkit-scrollbar \{ width: 6px/);
|
|
});
|