Skip to content

Fix CodeCaptcha refresh button vertical centering (math mode)#55

Merged
mvalancy merged 1 commit into
developfrom
fix/captcha-refresh-centering
Jun 14, 2026
Merged

Fix CodeCaptcha refresh button vertical centering (math mode)#55
mvalancy merged 1 commit into
developfrom
fix/captcha-refresh-centering

Conversation

@mvalancy

Copy link
Copy Markdown
Member

The refresh ('try different style') button wasn't vertically centered with the math problem the first time it's shown (no speaker button). The 'What is:' label pushed the number ~14px below the panel center while the refresh stayed panel-centered. Floated the label and centered the number as the primary element. Measured via a new report-only diagnostic: math refresh-vs-number offset -14px → 0px; the speaker state (already fine) is unchanged. 🤖 Generated with Claude Code

The "Protected by ALTCHA"-style challenge centered the refresh button in the
panel correctly, but in MATH mode the "What is:" label sat on top of the number
and pushed the number ~14px below the panel center, so the lone refresh button
(panel-centered) appeared above the number. (With the speaker button present the
two-button column brackets the center, so it read as centered.)

Float the "What is:" label at the top and center the NUMBER as the primary
element so it sits at the panel center, aligned with the refresh button.

Measured (geometry diagnostic, /signup): math refresh-vs-number offset
-14px -> 0px. New report-only diagnostic tests/diagnostics/captcha-layout.spec.ts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

@mvalancy mvalancy merged commit 51945a5 into develop Jun 14, 2026
16 checks passed
@mvalancy mvalancy deleted the fix/captcha-refresh-centering branch June 14, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant