From c352dab470d3b242346f7c8ddd3350ad99571de1 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 15 Nov 2023 19:44:44 +0800 Subject: [PATCH] refactor: take improvements from the edge browser (#289) --- assets/index.css | 1 + assets/index.html | 8 ++++---- assets/index.js | 2 +- src/server.rs | 26 +++++++++++++++++++------- tests/assets.rs | 9 ++++++--- 5 files changed, 31 insertions(+), 15 deletions(-) diff --git a/assets/index.css b/assets/index.css index 69b306e..79a7454 100644 --- a/assets/index.css +++ b/assets/index.css @@ -217,6 +217,7 @@ body { .save-btn { cursor: pointer; + -webkit-user-select: none; user-select: none; } diff --git a/assets/index.html b/assets/index.html index a1b865d..2073221 100644 --- a/assets/index.html +++ b/assets/index.html @@ -1,5 +1,5 @@ - + @@ -48,7 +48,7 @@ d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z" /> - + - +
@@ -122,7 +122,7 @@