diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-03-22 18:56:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-03-22 18:56:47 +0900 |
| commit | 4eb05efa7c2e482db31484d26d202cf3c9ec7e8d (patch) | |
| tree | 37bc1f77364fd29240485605101f3a9ac040e545 /src/client/app.vue | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.24.0 (diff) | |
| download | misskey-4eb05efa7c2e482db31484d26d202cf3c9ec7e8d.tar.gz misskey-4eb05efa7c2e482db31484d26d202cf3c9ec7e8d.tar.bz2 misskey-4eb05efa7c2e482db31484d26d202cf3c9ec7e8d.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/client/app.vue')
| -rw-r--r-- | src/client/app.vue | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/src/client/app.vue b/src/client/app.vue index 1e9fd6c0a9..b47c092ed2 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -43,7 +43,6 @@ <button class="item _button account" @click="openAccountMenu" v-if="$store.getters.isSignedIn"> <mk-avatar :user="$store.state.i" class="avatar"/><mk-acct class="text" :user="$store.state.i"/> </button> - <div class="divider"></div> <button class="item _button index active" @click="top()" v-if="$route.name === 'index'"> <fa :icon="faHome" fixed-width/><span class="text">{{ $store.getters.isSignedIn ? $t('timeline') : $t('home') }}</span> </button> @@ -164,7 +163,6 @@ import { v4 as uuid } from 'uuid'; import i18n from './i18n'; import { host, instanceName } from './config'; import { search } from './scripts/search'; -import { isDeviceDarkmode } from './scripts/is-device-darkmode'; import MkToast from './components/toast.vue'; const DESKTOP_THRESHOLD = 1100; @@ -225,10 +223,6 @@ export default Vue.extend({ }, created() { - if (this.$store.state.device.syncDeviceDarkMode) { - this.$store.commit('device/set', { key: 'darkMode', value: isDeviceDarkmode() }); - } - if (this.$store.getters.isSignedIn) { this.connection = this.$root.stream.useSharedConnection('main'); this.connection.on('notification', this.onNotification); @@ -622,12 +616,12 @@ export default Vue.extend({ .mk-app { $header-height: 60px; $nav-width: 250px; - $nav-icon-only-width: 74px; + $nav-icon-only-width: 80px; $main-width: 650px; $ui-font-size: 1em; $nav-icon-only-threshold: 1300px; - $nav-hide-threshold: 700px; - $side-hide-threshold: 1100px; + $nav-hide-threshold: 650px; + $side-hide-threshold: 1070px; min-height: 100vh; box-sizing: border-box; @@ -822,8 +816,6 @@ export default Vue.extend({ z-index: 1001; width: $nav-width; height: 100vh; - padding: 16px 0; - padding-bottom: calc(3.7rem + 24px); box-sizing: border-box; overflow: auto; background: var(--navBg); @@ -836,13 +828,21 @@ export default Vue.extend({ @media (max-width: $nav-icon-only-threshold) and (min-width: $nav-hide-threshold + 1px) { width: $nav-icon-only-width; - padding: 8px 0; - padding-bottom: calc(3.7rem + 24px); > .divider { margin: 8px auto; width: calc(100% - 32px); } + + > .item { + &:first-child { + margin-bottom: 8px; + } + + &:last-child { + margin-top: 8px; + } + } } > .item { @@ -892,15 +892,25 @@ export default Vue.extend({ color: var(--navActive); } + &:first-child { + position: sticky; + z-index: 1; + top: 0; + padding-top: 8px; + padding-bottom: 8px; + margin-bottom: 16px; + background: var(--navBg); + border-bottom: solid 1px var(--divider); + } + &:last-child { - position: fixed; + position: sticky; bottom: 0; - width: inherit; padding-top: 8px; padding-bottom: 8px; + margin-top: 16px; background: var(--navBg); border-top: solid 1px var(--divider); - border-right: solid 1px var(--divider); } @media (max-width: $nav-icon-only-threshold) and (min-width: $nav-hide-threshold + 1px) { |