Repository navigation
fix(input): 圆点左边缘直接贴在文字末尾、竖直居中于末尾那一行,而光标就在同一个位置 → 圆点与光标叠在一起,像是光标的一部分(#667) - #718
Merged
Merged
Conversation
Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
#665 之后,多行文本框里的圆点左边缘贴在文字末尾、竖直居中于末尾那一行。光标也在这个位置,两者叠在一起,圆点容易被当成光标的一部分。
根因
圆点位置直接取末尾坐标,没有给光标留位置。窄框里末尾顶到右内边缘时,#669 的钳制还会把圆点往左推回光标上。
修复
GAP,改为从逐段按钮导出。验证
pnpm test:115 个文件、1423 条,全部通过。pnpm typecheck通过。pnpm test:e2e:core:94 条通过,2 条跳过。Closes #667