From 7a55ef704cb2c4a9c67766105cafb9ce13186772 Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 17:01:56 +0800
Subject: [PATCH] checkpoint: v3.0.7 — 隐藏 APP 名称时 hover 自动显示
---
Apptag/AppGridItem.swift | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Apptag/AppGridItem.swift b/Apptag/AppGridItem.swift
index a607ac9..fbdeed4 100644
--- a/Apptag/AppGridItem.swift
+++ b/Apptag/AppGridItem.swift
@@ -26,12 +26,13 @@
)
.animation(.spring(response: 0.3, dampingFraction: 0.7), value: isHovered)
- if showName {
+ if showName || isHovered {
Text(app.name)
.font(.system(size: 11, weight: .medium))
.lineLimit(1)
.truncationMode(.tail)
.frame(maxWidth: iconSize + 20)
+ .opacity(showName ? 1 : 0.85)
}
}
.padding(.vertical, 8)
--
Gitblit v1.9.3