diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-09 12:33:08 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-09 12:33:08 +0900 |
| commit | 27c056cbbf6e85a033e85adbafd95a179a9db755 (patch) | |
| tree | d38be1c8fd56bf3d3a6f6a078f643b75292a7dfc /src/client/pages/settings | |
| parent | :art: (diff) | |
| download | misskey-27c056cbbf6e85a033e85adbafd95a179a9db755.tar.gz misskey-27c056cbbf6e85a033e85adbafd95a179a9db755.tar.bz2 misskey-27c056cbbf6e85a033e85adbafd95a179a9db755.zip | |
tweak ui
Diffstat (limited to 'src/client/pages/settings')
| -rw-r--r-- | src/client/pages/settings/index.vue | 10 | ||||
| -rw-r--r-- | src/client/pages/settings/profile.vue | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue index 3a8503ac55..2d5ced2181 100644 --- a/src/client/pages/settings/index.vue +++ b/src/client/pages/settings/index.vue @@ -39,7 +39,7 @@ </div> </div> <div class="main"> - <component :is="component" :key="page" @info="onInfo" v-bind="pageProps"/> + <component :is="component" :key="page" v-bind="pageProps"/> </div> </div> </template> @@ -74,16 +74,13 @@ export default defineComponent({ title: i18n.locale.settings, icon: 'fas fa-cog', bg: 'var(--bg)', - hide: true, }; const INFO = ref(indexInfo); const page = ref(props.initialPage); const narrow = ref(false); const view = ref(null); const el = ref(null); - const onInfo = (viewInfo) => { - INFO.value = viewInfo; - }; + const pageProps = ref({}); const component = computed(() => { if (page.value == null) return null; @@ -146,7 +143,7 @@ export default defineComponent({ } nextTick(() => { - scroll(el.value, 0); + scroll(el.value, { top: 0 }); }); }, { immediate: true }); @@ -176,7 +173,6 @@ export default defineComponent({ narrow, view, el, - onInfo, pageProps, component, emailNotConfigured, diff --git a/src/client/pages/settings/profile.vue b/src/client/pages/settings/profile.vue index eb9bc6565f..b993b5fc72 100644 --- a/src/client/pages/settings/profile.vue +++ b/src/client/pages/settings/profile.vue @@ -78,7 +78,6 @@ export default defineComponent({ title: this.$ts.profile, icon: 'fas fa-user', bg: 'var(--bg)', - hide: true, }, host, langs, |