From 43640e6e65fc798d7702531fa2189affc4a046df Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Sun, 10 May 2026 19:36:04 +0800
Subject: [PATCH] Improve fullscreen overlay space handling

---
 Apptag/ContentView.swift |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/Apptag/ContentView.swift b/Apptag/ContentView.swift
index c37b85f..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(
@@ -467,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