Skip to content

fix(ui): optimize TipsSlider layout margins to prevent text clipping#3150

Open
add-uos wants to merge 1 commit intolinuxdeepin:masterfrom
add-uos:fix-BUG-305223
Open

fix(ui): optimize TipsSlider layout margins to prevent text clipping#3150
add-uos wants to merge 1 commit intolinuxdeepin:masterfrom
add-uos:fix-BUG-305223

Conversation

@add-uos
Copy link
Copy Markdown
Contributor

@add-uos add-uos commented Apr 3, 2026

Add TextMetrics to dynamically calculate left/right margins based on text width, ensuring tips are fully visible without being clipped.

添加TextMetrics动态计算左右边距,确保提示文本完整显示不被裁剪。

Log: 修复TipsSlider文本裁剪问题
PMS: BUG-305223
Influence: 优化后所有TipsSlider组件的提示文本都能完整显示,提升用户体验。

Add TextMetrics to dynamically calculate left/right margins based on text
width, ensuring tips are fully visible without being clipped.

添加TextMetrics动态计算左右边距,确保提示文本完整显示不被裁剪。

Log: 修复TipsSlider文本裁剪问题
PMS: BUG-305223
Influence: 优化后所有TipsSlider组件的提示文本都能完整显示,提升用户体验。
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: add-uos

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @add-uos, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-bot
Copy link
Copy Markdown

deepin-bot bot commented Apr 3, 2026

TAG Bot

New tag: 6.1.80
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #3153

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