From 32ab3f7b7843903e9704a5776bf8869ab42b2595 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Fri, 20 Jun 2025 15:23:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug=E4=BF=AE=E5=A4=8D4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.css | 3 +++ src/pages/Measure.tsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index e9a168f..ed2d67c 100644 --- a/src/index.css +++ b/src/index.css @@ -66,6 +66,7 @@ } body { user-select: none; + margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', @@ -89,9 +90,11 @@ code { .icon-button { transition: all 0.1s ease; opacity: 1; + user-select: all; } .active-icon-button { + user-select: all; opacity: 0.6; /* 按下变暗 */ transform: scale(0.9); /* 轻微缩小 */ } diff --git a/src/pages/Measure.tsx b/src/pages/Measure.tsx index b29e522..1e3a68d 100644 --- a/src/pages/Measure.tsx +++ b/src/pages/Measure.tsx @@ -525,7 +525,8 @@ export default function Measure() { return ( <> -
+