diff --git a/src/components/Settings/Settings.vue b/src/components/Settings/Settings.vue index 2e817963..5083917d 100644 --- a/src/components/Settings/Settings.vue +++ b/src/components/Settings/Settings.vue @@ -18,6 +18,15 @@ const settingsMenu = { General, Appearance, SearchPage, Home, About } const activatedMenuItem = ref(MenuType.General) const title = ref(t('settings.title')) const preventCloseSettings = ref(false) +const scrollbarRef = ref() + +watch( + () => activatedMenuItem.value, + () => { + const osInstance = scrollbarRef.value.osInstance() + osInstance.elements().viewport.scrollTop = 0 + }, +) provide('preventCloseSettings', preventCloseSettings) @@ -153,43 +162,45 @@ function setCurrentTitle() {
-
+
- -
-
- {{ title }} -
-
- -
-
+ +
+
+ {{ title }} +
+
+ +
+
-
- +
+ - - - -
+ + + +
+
@@ -202,7 +213,7 @@ function setCurrentTitle() { } .settings-content { &::-webkit-scrollbar-track { - --at-apply: mt-80px mb-8; + --at-apply: mt-80px; } } diff --git a/src/components/Settings/components/About.vue b/src/components/Settings/components/About.vue index fccc9c9e..f51b54b5 100644 --- a/src/components/Settings/components/About.vue +++ b/src/components/Settings/components/About.vue @@ -52,7 +52,7 @@ function handleExportSettings() {