diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-24 20:16:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-24 20:16:55 +0900 |
| commit | dfd92efa89be3fce16914f06a8fd83ef23fe705c (patch) | |
| tree | dfda90d4c3bb90b83f58560e7a16d9ba911ba2cf /src/client/pages | |
| parent | :art: (diff) | |
| download | sharkey-dfd92efa89be3fce16914f06a8fd83ef23fe705c.tar.gz sharkey-dfd92efa89be3fce16914f06a8fd83ef23fe705c.tar.bz2 sharkey-dfd92efa89be3fce16914f06a8fd83ef23fe705c.zip | |
:art:
Diffstat (limited to 'src/client/pages')
| -rw-r--r-- | src/client/pages/admin/index.vue | 44 | ||||
| -rw-r--r-- | src/client/pages/settings/index.vue | 46 |
2 files changed, 52 insertions, 38 deletions
diff --git a/src/client/pages/admin/index.vue b/src/client/pages/admin/index.vue index 07d407764b..cda3ab912a 100644 --- a/src/client/pages/admin/index.vue +++ b/src/client/pages/admin/index.vue @@ -3,14 +3,18 @@ <div class="nav" v-if="!narrow || page == null"> <MkHeader :info="header"></MkHeader> - <div class="lxpfedzu"> - <img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/> - </div> + <MkSpacer :content-max="700"> + <div class="lxpfedzu"> + <div class="banner"> + <img :src="$instance.iconUrl || '/favicon.ico'" alt="" class="icon"/> + </div> - <MkInfo v-if="noMaintainerInformation" warn class="info">{{ $ts.noMaintainerInformationWarning }} <MkA to="/admin/settings" class="_link">{{ $ts.configure }}</MkA></MkInfo> - <MkInfo v-if="noBotProtection" warn class="info">{{ $ts.noBotProtectionWarning }} <MkA to="/admin/bot-protection" class="_link">{{ $ts.configure }}</MkA></MkInfo> + <MkInfo v-if="noMaintainerInformation" warn class="info">{{ $ts.noMaintainerInformationWarning }} <MkA to="/admin/settings" class="_link">{{ $ts.configure }}</MkA></MkInfo> + <MkInfo v-if="noBotProtection" warn class="info">{{ $ts.noBotProtectionWarning }} <MkA to="/admin/bot-protection" class="_link">{{ $ts.configure }}</MkA></MkInfo> - <MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu> + <MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu> + </div> + </MkSpacer> </div> <div class="main"> <MkStickyContainer> @@ -315,7 +319,7 @@ export default defineComponent({ [symbols.PAGE_INFO]: INFO, menuDef, header: { - title: i18n.locale.controllPanel, + title: i18n.locale.controlPanel, }, noMaintainerInformation, noBotProtection, @@ -357,20 +361,22 @@ export default defineComponent({ } > .nav { - > .info { - margin: 16px; - } - } -} + .lxpfedzu { + > .info { + margin: 16px 0; + } -.lxpfedzu { - margin: 16px; + > .banner { + margin: 16px; - > .icon { - display: block; - margin: auto; - height: 42px; - border-radius: 8px; + > .icon { + display: block; + margin: auto; + height: 42px; + border-radius: 8px; + } + } + } } } </style> diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue index 5a396b6a6b..cf053dbe63 100644 --- a/src/client/pages/settings/index.vue +++ b/src/client/pages/settings/index.vue @@ -1,9 +1,13 @@ <template> <div class="vvcocwet" :class="{ wide: !narrow }" ref="el"> <div class="nav" v-if="!narrow || page == null"> - <div class="title">{{ $ts.settings }}</div> - <MkInfo v-if="emailNotConfigured" warn class="info">{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></MkInfo> - <MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu> + <MkSpacer :content-max="700"> + <div class="baaadecd"> + <div class="title">{{ $ts.settings }}</div> + <MkInfo v-if="emailNotConfigured" warn class="info">{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></MkInfo> + <MkSuperMenu :def="menuDef" :grid="page == null"></MkSuperMenu> + </div> + </MkSpacer> </div> <div class="main"> <component :is="component" :key="page" v-bind="pageProps"/> @@ -272,22 +276,24 @@ export default defineComponent({ <style lang="scss" scoped> .vvcocwet { > .nav { - > .title { - margin: 16px; - font-size: 1.5em; - font-weight: bold; - } + .baaadecd { + > .title { + margin: 16px; + font-size: 1.5em; + font-weight: bold; + } - > .info { - margin: 0 16px; - } + > .info { + margin: 0 16px; + } - > .accounts { - > .avatar { - display: block; - width: 50px; - height: 50px; - margin: 8px auto 16px auto; + > .accounts { + > .avatar { + display: block; + width: 50px; + height: 50px; + margin: 8px auto 16px auto; + } } } } @@ -303,8 +309,10 @@ export default defineComponent({ box-sizing: border-box; overflow: auto; - > .title { - margin: 24px; + .baaadecd { + > .title { + margin: 24px 0; + } } } |