Commit 4d7bf68
š Harden QuantumCircuitViewer zoom with localStorage guards and named constants (#15940)
Fixes #15935
Adds CIRCUIT_ZOOM_MIN_PCT=15 and CIRCUIT_ZOOM_MAX_PCT=150 named constants; updates readPersistedZoom validation to check explicit bounds instead of parsed <= 0.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b20d15a commit 4d7bf68
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments