From 7b3ecfffc59d2d980d9f7628365b64c20fe015be Mon Sep 17 00:00:00 2001
From: Runt <qingingrunt2010@qq.com>
Date: Sun, 27 Jul 2025 09:42:03 +0000
Subject: [PATCH] 多个小窗缩放问题修复

---
 LiveProject/styles/TextBtnStyle.swift |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/LiveProject/styles/TextBtnStyle.swift b/LiveProject/styles/TextBtnStyle.swift
index 7c22fda..85e0369 100644
--- a/LiveProject/styles/TextBtnStyle.swift
+++ b/LiveProject/styles/TextBtnStyle.swift
@@ -11,5 +11,7 @@
 struct TextBtnStyle: ButtonStyle {
     func makeBody(configuration: Configuration) -> some View {
         configuration.label
+            .scaleEffect(configuration.isPressed ? 0.95 : 1.0)
+            .opacity(configuration.isPressed ? 0.8 : 1.0)
     }
 }

--
Gitblit v1.9.1