e3f4b72e1bcf
remove unused f-input from inline password group; sync slider+count when manually editing generated password in inject.ts and GeneratorDrawer
- time
- 2026-05-13 14:57 UTC · 5 months ago
- machine
- koh2
- parent
- 7f7e6a624761
↓ peach-browser-e3f4b72e.tar.gzatlas at this save
files changed1 file
src/content/inject.ts+4 −0src/content/inject.ts+4 −0
@@ -346,6 +346,9 @@346346 347347 output.addEventListener("input", () => {348348 password = output.value;349+ length = password.length;350+ slider.value = String(Math.max(8, Math.min(128, length)));351+ lenNum.textContent = String(length);349352 opts.onChange?.(password);350353 });351354 @@ -1848,6 +1851,7 @@18481851 // policy hint. Mirrors the main UI's compact generator so users get the18491852 // same controls inline as in the popup.18501853 const pg = fGroup("password");1854+ pg.inp.remove(); // smartGen provides its own display — no separate input needed18511855 let currentPassword = prePassword || "";18521856 const smartGen = createSmartGenerator({18531857 policy: sitePolicy,