fix: change notification title elide mode to right#1506
Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom Mar 17, 2026
Merged
fix: change notification title elide mode to right#1506deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
Changed the elide property of the notification title text from ElideMiddle to ElideRight. This modification ensures that when notification titles are too long to fit within the available space, the text will be truncated from the end (right side) rather than the middle. This provides better readability and user experience as users typically expect to see the beginning of titles which often contain the most important information. Log: Notification titles now truncate from the end instead of the middle for better readability Influence: 1. Test notifications with long titles to verify truncation occurs at the end 2. Verify that short titles display completely without truncation 3. Check that the layout remains stable with various title lengths 4. Test with different system font sizes to ensure proper text rendering 5. Verify that mouse hover tooltips (if present) still show full titles fix: 修改通知标题省略模式为右侧省略 将通知标题文本的省略属性从 ElideMiddle 更改为 ElideRight。此修改确保当 通知标题过长无法在可用空间内显示时,文本将从末尾(右侧)截断,而不是从中 间截断。这提供了更好的可读性和用户体验,因为用户通常期望看到标题的开头部 分,这部分通常包含最重要的信息。 Log: 通知标题现在从末尾截断而不是从中间截断,以提高可读性 Influence: 1. 测试带有长标题的通知,验证截断发生在末尾 2. 验证短标题能够完整显示而不被截断 3. 检查不同标题长度下布局是否保持稳定 4. 使用不同的系统字体大小测试,确保文本渲染正确 5. 验证鼠标悬停提示(如果存在)仍能显示完整标题 PMS: BUG-353223
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates notification title text truncation to elide from the right instead of the middle to improve readability of long titles. Flow diagram for notification title elide mode decisionflowchart TD
A[NotificationTitleText] --> B{TitleWidth > AvailableWidth?}
B -- No --> C[Display full title text]
B -- Yes --> D[Apply ElideRight mode]
D --> E[Render title with right-side truncation]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review代码审查意见针对提供的 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结建议该修改将文本截断方式从中间截断改为右侧截断。如果该文本组件主要用于显示通知的标题或正文,这是一个正向的改进,能提供更好的阅读体验。 建议:在合并代码前,请务必在 UI 上进行视觉回归测试,确保在文本过长时,右侧截断的显示效果符合设计预期,且没有与其他文本(如时间戳)发生重叠或布局错乱。 |
mhduiy
approved these changes
Mar 17, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
|
This pr force merged! (status: blocked) |
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.
Changed the elide property of the notification title text from ElideMiddle to ElideRight. This modification ensures that when notification titles are too long to fit within the available space, the text will be truncated from the end (right side) rather than the middle. This provides better readability and user experience as users typically expect to see the beginning of titles which often contain the most important information.
Log: Notification titles now truncate from the end instead of the middle for better readability
Influence:
fix: 修改通知标题省略模式为右侧省略
将通知标题文本的省略属性从 ElideMiddle 更改为 ElideRight。此修改确保当
通知标题过长无法在可用空间内显示时,文本将从末尾(右侧)截断,而不是从中
间截断。这提供了更好的可读性和用户体验,因为用户通常期望看到标题的开头部
分,这部分通常包含最重要的信息。
Log: 通知标题现在从末尾截断而不是从中间截断,以提高可读性
Influence:
PMS: BUG-353223
Summary by Sourcery
Bug Fixes: