From 3d6e164126fb387ea942f4dec75fc06c78a81301 Mon Sep 17 00:00:00 2001 From: DingChil Date: Thu, 26 Oct 2023 16:06:22 +0800 Subject: [PATCH] fix: sample image updates following the selected value in settings page Signed-off-by: DingChil --- ...ctText.vue => ImageSelectTextWithIcon.vue} | 22 +++++++++---------- .../image/ImageSelectTextWithoutIcon.vue | 14 ++++++++++++ src/config.ts | 2 +- src/csui/Index/TheEntry.vue | 1 + src/options/components/SwitchButton.vue | 2 +- src/options/views/ExtensionView.vue | 8 +++---- src/tabs/components/StepThree.vue | 6 +++-- 7 files changed, 36 insertions(+), 19 deletions(-) rename src/components/image/{ImageSelectText.vue => ImageSelectTextWithIcon.vue} (79%) create mode 100644 src/components/image/ImageSelectTextWithoutIcon.vue diff --git a/src/components/image/ImageSelectText.vue b/src/components/image/ImageSelectTextWithIcon.vue similarity index 79% rename from src/components/image/ImageSelectText.vue rename to src/components/image/ImageSelectTextWithIcon.vue index f6a118f..ea19b84 100644 --- a/src/components/image/ImageSelectText.vue +++ b/src/components/image/ImageSelectTextWithIcon.vue @@ -10,20 +10,20 @@ d="M1 11C1 5.47715 5.47715 1 11 1H174C179.523 1 184 5.47715 184 11V20H1V11Z" fill="#EDEFF2" /> - + - + + + + + + + + + + + diff --git a/src/config.ts b/src/config.ts index e8888a4..4216b2a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -21,7 +21,7 @@ export const defaultConfig = { /** If user not set token at welcome page set false */ isFinishSetup: false, /** When select text (by mouse or keyboard) show popup */ - autoPopup: true, + autoPopup: false, /** Self host url */ selfHostUrl: '', /** Azure specify ApiVersion */ diff --git a/src/csui/Index/TheEntry.vue b/src/csui/Index/TheEntry.vue index 82e5c77..224ef58 100644 --- a/src/csui/Index/TheEntry.vue +++ b/src/csui/Index/TheEntry.vue @@ -178,6 +178,7 @@ const handleClosePopup = () => { } const handleMouseOverTail = () => { + shortcutUsed.value = false showWebpilotPopup.value = true } diff --git a/src/options/components/SwitchButton.vue b/src/options/components/SwitchButton.vue index 65395df..a5244a0 100644 --- a/src/options/components/SwitchButton.vue +++ b/src/options/components/SwitchButton.vue @@ -75,6 +75,6 @@ function toggleSwitch() { } .off { - left: 60%; + left: 67%; } diff --git a/src/options/views/ExtensionView.vue b/src/options/views/ExtensionView.vue index 48fca44..2ae7c84 100644 --- a/src/options/views/ExtensionView.vue +++ b/src/options/views/ExtensionView.vue @@ -14,7 +14,8 @@ @on-change="onAutoPopupChange" /> - + +
Shortcut @@ -23,8 +24,6 @@
- -