From 900a125d7f7cf88c6fb6af5fc6a27a8e2c3d60ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 21 Sep 2024 09:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E7=AA=97=E5=8F=A3=E7=BD=AE?= =?UTF-8?q?=E9=A1=B6btn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/tauri-apps/tauri/issues/11078 --- src-tauri/capabilities/SubWindow.json | 1 + src-tauri/gen/schemas/capabilities.json | 1 + src/components/app/t-pinWin.vue | 54 +++++++++++++++++++++ src/components/{main => app}/t-shareBtn.vue | 2 +- src/components/post/tb-collect.vue | 13 +++-- src/views/t-anno.vue | 4 +- src/views/t-post.vue | 4 +- 7 files changed, 69 insertions(+), 10 deletions(-) create mode 100644 src/components/app/t-pinWin.vue rename src/components/{main => app}/t-shareBtn.vue (98%) diff --git a/src-tauri/capabilities/SubWindow.json b/src-tauri/capabilities/SubWindow.json index e0d3fd4d..e7c2aaa1 100644 --- a/src-tauri/capabilities/SubWindow.json +++ b/src-tauri/capabilities/SubWindow.json @@ -31,6 +31,7 @@ "core:window:allow-set-focus", "core:window:allow-set-fullscreen", "core:window:allow-show", + "core:window:allow-set-always-on-top", "core:window:default", { "identifier": "fs:allow-exists", diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index 4ec39d2e..a42f42e7 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -102,6 +102,7 @@ "core:window:allow-set-focus", "core:window:allow-set-fullscreen", "core:window:allow-show", + "core:window:allow-set-always-on-top", "core:window:default", { "identifier": "fs:allow-exists", "allow": [{ "path": "**" }] }, { "identifier": "fs:allow-mkdir", "allow": [{ "path": "**" }] }, diff --git a/src/components/app/t-pinWin.vue b/src/components/app/t-pinWin.vue new file mode 100644 index 00000000..f684acb3 --- /dev/null +++ b/src/components/app/t-pinWin.vue @@ -0,0 +1,54 @@ + + + diff --git a/src/components/main/t-shareBtn.vue b/src/components/app/t-shareBtn.vue similarity index 98% rename from src/components/main/t-shareBtn.vue rename to src/components/app/t-shareBtn.vue index a3de4cc2..7a535b21 100644 --- a/src/components/main/t-shareBtn.vue +++ b/src/components/app/t-shareBtn.vue @@ -63,7 +63,7 @@ async function shareContent(): Promise { height: 24px; align-items: center; justify-content: center; - padding-right: 2px; + padding-right: 3px; margin: 5px; } diff --git a/src/components/post/tb-collect.vue b/src/components/post/tb-collect.vue index 8c348945..5f916269 100644 --- a/src/components/post/tb-collect.vue +++ b/src/components/post/tb-collect.vue @@ -1,7 +1,7 @@