From bf170f234f01305cf24e613e5d07459d795cd23f Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Mon, 2 Mar 2026 17:58:00 +0800 Subject: [PATCH] fix: adjust notification UI spacing and action margins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Added Layout.topMargin: 8 to the NotifyAction component in NotifyItemContent.qml 2. This change adds vertical spacing between notification content and action buttons 3. Improves visual hierarchy and readability in notification items 4. Ensures better separation between notification text and interactive elements Log: Improved notification UI spacing for better readability Influence: 1. Verify notification items display correctly with action buttons 2. Check that 8px margin appears between content and action buttons 3. Test notifications with multiple actions to ensure proper layout 4. Verify UI consistency across different notification types 5. Test responsiveness of notification items with the added spacing fix: 调整通知UI间距和操作按钮边距 1. 在 NotifyItemContent.qml 中的 NotifyAction 组件添加了 Layout.topMargin: 8 2. 此更改在通知内容和操作按钮之间增加了垂直间距 3. 改善了通知项目的视觉层次和可读性 4. 确保通知文本和交互元素之间有更好的分隔 Log: 改进了通知UI间距以提升可读性 Influence: 1. 验证带有操作按钮的通知项目是否正确显示 2. 检查内容和操作按钮之间是否出现8像素的边距 3. 测试具有多个操作的通知以确保布局正确 4. 验证不同通知类型的UI一致性 5. 测试添加间距后通知项目的响应性 --- panels/notification/plugin/NotifyItemContent.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/notification/plugin/NotifyItemContent.qml b/panels/notification/plugin/NotifyItemContent.qml index 82db8c8e2..1e20e0742 100644 --- a/panels/notification/plugin/NotifyItemContent.qml +++ b/panels/notification/plugin/NotifyItemContent.qml @@ -329,6 +329,7 @@ NotifyItem { active: root.actions.length > 0 visible: active Layout.alignment: Qt.AlignRight | Qt.AlignBottom + Layout.topMargin: 8 sourceComponent: NotifyAction { actions: root.actions onActionInvoked: function (actionId) {