Zoom range 50–150% in 10% increments

https://claude.ai/code/session_01JyuActqTJG5tuRQNLmT7fZ
This commit is contained in:
Claude 2026-06-08 16:26:11 +00:00
parent 138c29a3a4
commit da66515394
No known key found for this signature in database

View file

@ -718,8 +718,8 @@ function render() {
toolbar.appendChild(el('div', {className:'spacer'}));
// Font size — A / A+ with a live % label
const scales = [0.8, 0.9, 1, 1.12, 1.25];
let scaleIdx = 2; // default: 100%
const scales = [0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4,1.5];
let scaleIdx = 5; // default: 100%
const szLabel = el('span', {style:'font-size:12px;color:var(--text-muted);font-family:var(--font-mono)'}, '100%');
const sizeSeg = el('div', {className:'kb-seg', role:'group', 'aria-label':'Text size'});
const szDown = el('button', {type:'button', 'aria-label':'Smaller text'}, 'A');