Repository navigation
fix: adjust folder popup layout to match design spec - #1858
18202781743 wants to merge 1 commit into
Conversation
1. Root cause: cellWidth/cellHeight were 96/104 instead of 90/98, Grid spacing was unset instead of 30px per design specification 2. Fix: change cellWidth to 90, cellHeight to 98, add Grid spacing 30, add spacing terms to panel width/height/contentHeight formulas 3. Impact: dock fashion-mode folder popup now matches design spec for hover frame size and icon spacing Log: adjust dock folder popup layout to match design specification Influence: 1. Test folder popup with different app counts (<=4, 5-8, >8) 2. Verify popup positioning near screen edges 3. Check hover frame size and icon spacing visually fix: 调整应用组弹窗布局以匹配设计规范 1. 根因:cellWidth/cellHeight 设为 96/104 而非设计规范的 90/98, Grid 未设置 spacing 而非设计规范的 30px 2. 方案:将 cellWidth 改为 90、cellHeight 改为 98、Grid 添加 spacing 30,并在面板宽高及 contentHeight 公式中补加 spacing 项 3. 影响:任务栏时尚模式应用组弹窗的 hover 框尺寸和图标间距 现符合设计规范 Log: 调整任务栏应用组弹窗布局以匹配设计规范 Influence: 1. 测试不同应用数量下(≤4、5-8、>8)的弹窗布局 2. 验证屏幕边缘附近弹窗的定位行为 3. 目视检查 hover 框尺寸和图标间距 PMS: BUG-384283
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 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 |
Reviewer's GuideUIAdjust the folder popup’s cell dimensions, grid spacing, and matching width, height, and content-height calculations so the displayed layout matches the design specification.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/taskmanager/package/FolderPopup.qml" line_range="127" />
<code_context>
}
Grid {
columns: root.columns
+ spacing: 30
Repeater {
model: root.contents
</code_context>
<issue_to_address>
**Final column is clipped**
When a folder popup has entries in its final grid column, `Grid` adds its 30px spacing to delegates sized at `flick.width / root.columns`, so it exceeds the clipped Flickable and hides most of the final column; hover frames also exceed the specified 90px width.
Account for the spacing in delegate widths so the grid fits the Flickable, or remove the spacing.
</issue_to_address>| } | ||
| Grid { | ||
| columns: root.columns | ||
| spacing: 30 |
There was a problem hiding this comment.
🟠 High · Final column is clipped
When a folder popup has entries in its final grid column, Grid adds its 30px spacing to delegates sized at flick.width / root.columns, so it exceeds the clipped Flickable and hides most of the final column; hover frames also exceed the specified 90px width.
Account for the spacing in delegate widths so the grid fits the Flickable, or remove the spacing.
Prompt for AI agents
In `panels/dock/taskmanager/package/FolderPopup.qml` at line 127:
**Final column is clipped**
When a folder popup has entries in its final grid column, `Grid` adds its 30px spacing to delegates sized at `flick.width / root.columns`, so it exceeds the clipped Flickable and hides most of the final column; hover frames also exceed the specified 90px width.
Account for the spacing in delegate widths so the grid fits the Flickable, or remove the spacing.|
TAG Bot New tag: 6.2.2 |
|
TAG Bot New tag: 6.2.2 |
Root Cause Analysis
The dock fashion-mode folder popup (
FolderPopup.qml) had layout parameters that did not match the design specification.cellWidthwas 96 instead of 90,cellHeightwas 104 instead of 98, and theGridelement had nospacingset (default 0) instead of the required 30px. These values were set at file creation (commit 69fe3da) and never corrected. The panel width/height formulas also omitted the spacing term, causing the overall panel size to deviate from the design spec.Key evidence:
panels/dock/taskmanager/package/FolderPopup.qml:26-27(cellWidth/cellHeight values),FolderPopup.qml:125(Grid missing spacing), and panel size formulas at lines 43/46/115.Fix
Changed
cellWidthfrom 96 to 90,cellHeightfrom 104 to 98, addedspacing: 30to the Grid element, and added the spacing term(n-1) * 30to the panel width, height, and contentHeight formulas. This aligns all layout parameters with the design specification (hover frame 90×98, icon spacing 30px).Change Safety Assessment
Code Safety
FolderPopup.qmlis self-contained;cellWidth/cellHeightare readonly properties referenced only within this file.TaskManager.qmlandTaskOverflowButton.qmlhave independent definitions and are unaffected.Business Impact Scope
Affected module: Dock fashion-mode folder popup — the popup that appears when clicking an app group icon in the taskbar. The change adjusts hover frame size and icon spacing to match the design spec. User scenarios: clicking an app group in the taskbar to view and launch grouped applications.
Verification Suggestion
Test the folder popup with different app counts (≤4, 5-8, >8) to verify layout, hover frame size (90×98), icon spacing (30px), and popup positioning near screen edges.
根因分析
任务栏时尚模式应用组弹窗(
FolderPopup.qml)的布局参数与设计规范不一致。cellWidth为 96 而非 90,cellHeight为 104 而非 98,Grid元素未设置spacing(默认 0)而非设计规范的 30px。这些值在文件创建时(commit 69fe3da)即设为此值,从未校正。面板宽高公式也缺少 spacing 项,导致面板整体尺寸偏离设计规范。关键证据:
panels/dock/taskmanager/package/FolderPopup.qml:26-27(cellWidth/cellHeight 值)、FolderPopup.qml:125(Grid 缺少 spacing)、面板尺寸公式(第 43/46/115 行)。修复方案
将
cellWidth从 96 改为 90,cellHeight从 104 改为 98,为 Grid 元素添加spacing: 30,并在面板宽度、高度及 contentHeight 公式中补加 spacing 项(n-1) * 30。使所有布局参数与设计规范一致(hover 框 90×98、图标间距 30px)。改动安全评估
代码安全评估
FolderPopup.qml为自包含组件,cellWidth/cellHeight为 readonly property,仅在本文件内引用。TaskManager.qml和TaskOverflowButton.qml有独立定义,互不影响。业务影响范围
受影响模块:任务栏时尚模式应用组弹窗 — 点击任务栏应用组图标后弹出的文件夹式弹窗。本次改动将 hover 框尺寸和图标间距调整为符合设计规范。用户场景:点击任务栏应用组图标查看和启动分组应用。
验证建议
测试不同应用数量下(≤4、5-8、>8)的弹窗布局,验证 hover 框尺寸(90×98)、图标间距(30px)以及屏幕边缘附近的弹窗定位行为。
Summary by Sourcery
Bug Fixes: