From c992a5929562434a8b0482ec7389cb7f70d20bb7 Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 18:49:16 +0800
Subject: [PATCH] checkpoint: v3.1.5 — 第一二行间距加大12px

---
 Apptag/ContentView.swift |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/Apptag/ContentView.swift b/Apptag/ContentView.swift
index 76a4df7..e28b132 100644
--- a/Apptag/ContentView.swift
+++ b/Apptag/ContentView.swift
@@ -4,7 +4,6 @@
 // MARK: - Notification for manual re-index
 
 extension Notification.Name {
-    static let apptagReindex = Notification.Name("ApptagReindex")
     static let apptagEditModeChanged = Notification.Name("ApptagEditModeChanged")
 }
 
@@ -255,9 +254,6 @@
         .onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in
             refreshApps()
         }
-        .onReceive(NotificationCenter.default.publisher(for: .apptagReindex)) { _ in
-            refreshApps()
-        }
         .onChange(of: editPhase) { _, newPhase in
             let active = newPhase != .none
             NotificationCenter.default.post(
@@ -345,6 +341,9 @@
                         else { highlightedGroup = tag.id }
                         scrollTo(tag.id)
                     })
+                    .onHover { hovering in
+                        if hovering { scrollTo(tag.id) }
+                    }
                 }
             }.padding(.horizontal, 24)
         }
@@ -360,6 +359,9 @@
                         else { highlightedGroup = tag.id }
                         scrollTo(tag.id)
                     })
+                    .onHover { hovering in
+                        if hovering { scrollTo(tag.id) }
+                    }
                 }
             }.padding(12)
         }.frame(width: 135)
@@ -397,7 +399,9 @@
                         ).id(group.id)
                     }
                 }.padding(20)
-            }.onAppear { scrollProxy = proxy }
+            }
+            .id(displayMode)  // force rebuild on mode switch
+            .onAppear { scrollProxy = proxy }
         }
     }
 
@@ -426,6 +430,7 @@
                     }
                     .padding(outerPad)
                 }
+                .id(displayMode)  // force rebuild on mode switch
                 .onAppear { scrollProxy = proxy }
             }
         }
@@ -458,13 +463,16 @@
         return VStack(alignment: .leading, spacing: 6) {
             HStack(spacing: 0) {
                 Rectangle().fill(.secondary.opacity(0.25)).frame(height: 1)
+                    .layoutPriority(0)
                 Text(group.name)
                     .font(.system(size: tagFontSize, weight: .semibold))
                     .foregroundStyle(.secondary)
                     .lineLimit(1)
                     .truncationMode(.middle)
                     .padding(.horizontal, 10)
+                    .layoutPriority(1)
                 Rectangle().fill(.secondary.opacity(0.25)).frame(height: 1)
+                    .layoutPriority(0)
             }
             let itemSize = iconSize + 28
             LazyVGrid(

--
Gitblit v1.9.3