File tree 1 file changed +5
-3
lines changed
src/components/views/settings
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import SettingsCache from '~/components/views/settings/SettingsCache.vue';
8
8
import SettingsLinks from ' ~/components/views/settings/SettingsLinks.vue' ;
9
9
import SettingsLogs from ' ~/components/views/settings/SettingsLogs.vue' ;
10
10
import SettingsTabs from ' ~/components/views/settings/SettingsTabs.vue' ;
11
-
12
11
import { useI18n } from ' ~/utils' ;
13
12
14
13
const i18n = useI18n (' settings' );
@@ -33,9 +32,11 @@ const target = ref();
33
32
const scrollTo = (section : Section ) => {
34
33
target .value = section ;
35
34
focus .value = section ;
36
- section .reference ?.value ?.[0 ]?.$el ?.scrollIntoView ({
35
+
36
+ const element: HTMLDivElement = section .reference ?.value ?.[0 ]?.$el ;
37
+ element ?.scrollIntoView ({
37
38
behavior: ' smooth' ,
38
- block: ' center ' ,
39
+ block: ' start ' ,
39
40
});
40
41
};
41
42
@@ -116,6 +117,7 @@ onDeactivated(() => {
116
117
@include mixin .hover-background ($from : var (--bg-black-50 ), $to : var (--bg-color-80 ));
117
118
118
119
z-index : var (--index );
120
+ scroll-margin-top : calc (#{layout .$header-navbar-height } + 1rem );
119
121
120
122
& :not (:last-child ) {
121
123
margin-bottom : 1rem ;
You can’t perform that action at this time.
0 commit comments