Commit 7ff0055
fix(notification): Button text is truncated when hovering over
"Clear all" in English environment with 20 font size
- Added OpacityMask to the title container for a smooth fade-out
effect on the right side
- Enabled gradient effect only when text overflows (using width +
5px threshold)
- Made the last 10% of the text fade to transparent for a natural
visual transition
---
fix(notification): 英文环境且字体为20号,展开通知面板后,鼠标
hover到“清除全部”,此按钮未全部显示。
- 为标题容器添加 OpacityMask 实现右侧平滑淡出
- 仅在文字溢出时启用渐变(宽度 + 5px 阈值)
- 最后 10% 文字渐变透明以实现自然视觉过渡
Log: 修复通知中心在英文环境且字体为20号,展开通知面板后,鼠标hover到“清除全部”,此按钮未全部显示问题
Influence: 通知中心-顶部按钮
PMS: BUG-3351431 parent e1bfe70 commit 7ff0055
1 file changed
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
| |||
0 commit comments