Skip to content

fix: center slide captcha text in visible area after verification - #185

Merged
jubaoliang merged 1 commit into
TencentCloud:developfrom
miaowmint:fix/slide-captcha-text-alignment
Aug 6, 2026
Merged

fix: center slide captcha text in visible area after verification#185
jubaoliang merged 1 commit into
TencentCloud:developfrom
miaowmint:fix/slide-captcha-text-alignment

Conversation

@miaowmint

Copy link
Copy Markdown

When the slider reaches the right end upon successful verification, the hint text container still used paddingLeft=THUMB_SIZE which centers the text in the area to the right of the (now right-positioned) thumb. Swap the horizontal padding based on the verified state so the success label is centered in the visible area to the LEFT of the thumb, matching the visual position of the hint before verification.

Summary

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally
  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

When the slider reaches the right end upon successful verification, the
hint text container still used paddingLeft=THUMB_SIZE which centers the
text in the area to the right of the (now right-positioned) thumb. Swap
the horizontal padding based on the verified state so the success label
is centered in the visible area to the LEFT of the thumb, matching the
visual position of the hint before verification.
@jubaoliang
jubaoliang merged commit ddcd27f into TencentCloud:develop Aug 6, 2026
3 checks passed
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.

2 participants