feat(badge-card): 描述文本按实际折行行数自适应卡片高度 - #259
Open
jasper241024 wants to merge 1 commit into
Open
Conversation
jasper241024
force-pushed
the
feature/badge-card-dynamic-hight
branch
from
September 1, 2026 15:07
111a188 to
659ea71
Compare
- 新增 measureTextLines:测量文本在容器宽度内的折行行数,与渲染层 换行行为对齐(CJK 逐字断行、超长单词强制断开);结果由 withTextLinesCache 按单次 compose 的作用域托管,作用域外不缓存, 避免 Web 字体加载后沿用回退字体的度量 - BadgeCard 高度由固定 80px / 固定两行 desc 改为按整批 item 中最长 描述的实际折行统一计算,长文本不再溢出卡片、网格单元格高度对齐; 显式传入 height 时优先 - sequence-interaction 渲染 Item 时补充 data 属性以参与统一高度计算 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CvS5NXm1n4WBhv3kkDeWL
jasper241024
force-pushed
the
feature/badge-card-dynamic-hight
branch
from
September 1, 2026 16:10
659ea71 to
66eba12
Compare
jasper241024
marked this pull request as draft
September 1, 2026 16:13
jasper241024
marked this pull request as ready for review
September 1, 2026 16:21
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.
measureTextLines:测量文本在容器宽度内的折行行数,与渲染层换行行为对齐(CJK 逐字断行、超长单词强制断开);结果由withTextLinesCache按单次 compose 的作用域托管,作用域外不缓存,避免 Web 字体加载后沿用回退字体的度量BadgeCard高度由固定 80px / 固定两行 desc 改为按整批 item 中最长描述的实际折行统一计算,长文本不再溢出卡片、网格单元格高度对齐;显式传入height时优先sequence-interaction渲染 Item 时补充data属性以参与统一高度计算Closes #258