diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-18 15:23:50 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-18 15:23:50 +0900 |
| commit | 0a295e1bb0b6216a81f9e852fc28dea7f796fb99 (patch) | |
| tree | 4aadc8b6a3fb7735295da1f9909285825d10c153 /packages/frontend/src/ui/zen.vue | |
| parent | follow up of 6c8f21b608eb6e9e7691983c7e57f1cbe0a28fc1 (diff) | |
| download | misskey-0a295e1bb0b6216a81f9e852fc28dea7f796fb99.tar.gz misskey-0a295e1bb0b6216a81f9e852fc28dea7f796fb99.tar.bz2 misskey-0a295e1bb0b6216a81f9e852fc28dea7f796fb99.zip | |
🎨
Diffstat (limited to 'packages/frontend/src/ui/zen.vue')
| -rw-r--r-- | packages/frontend/src/ui/zen.vue | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/packages/frontend/src/ui/zen.vue b/packages/frontend/src/ui/zen.vue index 99248abecf..45524d1fbb 100644 --- a/packages/frontend/src/ui/zen.vue +++ b/packages/frontend/src/ui/zen.vue @@ -4,21 +4,23 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<div :class="showBottom ? $style.rootWithBottom : $style.root"> - <div style="container-type: inline-size;"> - <RouterView/> +<div :class="$style.root"> + <div :class="$style.contents"> + <div class="_pageContainer" style="flex: 1; min-height: 0;"> + <RouterView/> + </div> + + <!-- + デッキUIが設定されている場合はデッキUIに戻れるようにする (ただし?zenが明示された場合は表示しない) + See https://github.com/misskey-dev/misskey/issues/10905 + --> + <div v-if="showBottom" :class="$style.bottom"> + <button v-tooltip="i18n.ts.goToMisskey" :class="['_button', '_shadow', $style.button]" @click="goToMisskey"><i class="ti ti-home"></i></button> + </div> </div> <XCommon/> </div> - -<!-- - デッキUIが設定されている場合はデッキUIに戻れるようにする (ただし?zenが明示された場合は表示しない) - See https://github.com/misskey-dev/misskey/issues/10905 ---> -<div v-if="showBottom" :class="$style.bottom"> - <button v-tooltip="i18n.ts.goToMisskey" :class="['_button', '_shadow', $style.button]" @click="goToMisskey"><i class="ti ti-home"></i></button> -</div> </template> <script lang="ts" setup> @@ -54,19 +56,16 @@ provideReactiveMetadata(pageMetadata); function goToMisskey() { window.location.href = '/'; } - -document.documentElement.style.overflowY = 'scroll'; </script> <style lang="scss" module> .root { - min-height: 100dvh; - box-sizing: border-box; } -.rootWithBottom { - min-height: calc(100dvh - (60px + (var(--MI-margin) * 2) + env(safe-area-inset-bottom, 0px))); - box-sizing: border-box; +.contents { + display: flex; + flex-direction: column; + height: 100dvh; } .bottom { @@ -76,7 +75,6 @@ document.documentElement.style.overflowY = 'scroll'; } .button { - position: fixed !important; padding: 0; aspect-ratio: 1; width: 100%; |