fba638254319
fix license activation — remove toUpperCase, error above button, centered error style
- time
- 2026-04-28 16:10 UTC · 6 months ago
- machine
- koh2
- parent
- 5e086a0d6860
↓ peach-browser-fba63825.tar.gzatlas at this save
files changed2 files
src/popup/styles/popup.css+3 −1src/popup/views/Settings.tsx+4 −4src/popup/styles/popup.css+3 −1
@@ -5316,8 +5316,10 @@53165316 53175317 .peach-pro-key-error {53185318 margin: 0;5319- font-size: 11px;5319+ font-size: 12px;5320+ text-align: center;53205321 color: var(--peach-breach, #e55);5322+ padding: 2px 0 2px;53215323 }53225324 53235325 /* ── Pro tier — active state ─────────────────────────────────── */src/popup/views/Settings.tsx+4 −4
@@ -1403,7 +1403,7 @@14031403 placeholder="PPK-XXXX-XXXX-XXXX-XXXX-XXXX"14041404 value={licenseKeyInput()}14051405 onInput={(e) =>1406- setLicenseKeyInput(e.currentTarget.value.toUpperCase())1406+ setLicenseKeyInput(e.currentTarget.value)14071407 }14081408 onKeyDown={(e) => {14091409 if (e.key === "Enter") void onActivate();@@ -1411,6 +1411,9 @@14111411 autocomplete="off"14121412 spellcheck={false}14131413 />1414+ <Show when={licenseError()}>1415+ <p class="peach-pro-key-error">That key doesn't look right.</p>1416+ </Show>14141417 <button14151418 class="peach-btn peach-btn--accent peach-btn--sm"14161419 onClick={() => void onActivate()}@@ -1418,9 +1421,6 @@14181421 >14191422 {activatingLicense() ? "activating…" : "Activate"}14201423 </button>1421- <Show when={licenseError()}>1422- <p class="peach-pro-key-error">That key doesn't look right.</p>1423- </Show>14241424 </div>14251425 </Show>14261426 </div>