fix(album): restore clickability of empty-state buttons - #778
Conversation
Raise AlbumDefaultPage above the full-page DropArea. Log: 修复专辑默认页按钮无法点击问题 PMS: BUG-374225 Influence: 确保专辑为空时,默认页中的添加歌曲和打开文件夹按钮可以正常响应点击。
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR ensures the album empty-state controls remain clickable by adjusting their stacking order relative to the full-page DropArea. Flow diagram for AlbumView empty-state layering fixflowchart TD
AlbumView[AlbumView]
AlbumDefaultPage["AlbumDefaultPage (z:1)"]
DropArea[FullPage DropArea]
AlbumView --> AlbumDefaultPage
AlbumView --> DropArea
AlbumDefaultPage -->|captures clicks on empty-state buttons| UserInteraction
DropArea -->|receives drag and drop events| UserInteraction
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review★ 总体评分:95分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 // 当前代码已为最佳实践,无需额外修改
AlbumDefaultPage {
id: defaultPage
// Keep empty-state controls above the full-page DropArea below.
z: 1
width: toolButtonItem.width; height: contenWindow.height - toolButtonItem.height
anchors.left: toolButtonItem.left
anchors.top: toolButtonItem.bottom;
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, wyu71 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 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
|
/forcemerge |
|
This pr force merged! (status: unknown) |
Raise AlbumDefaultPage above the full-page DropArea.
Log: 修复专辑默认页按钮无法点击问题
PMS: BUG-374225
Influence: 确保专辑为空时,默认页中的添加歌曲和打开文件夹按钮可以正常响应点击。
Summary by Sourcery
Bug Fixes: