summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-02-11 22:16:20 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-02-11 22:16:20 +0900
commitc1f0fa5bd6b2f6b5f8c46375bc32e54c9c985844 (patch)
treeb392eed2f14106186cf60c9ab9de686c2a68cee4
parentfix(client): ノート詳細が開けないのを直したり (diff)
downloadmisskey-c1f0fa5bd6b2f6b5f8c46375bc32e54c9c985844.tar.gz
misskey-c1f0fa5bd6b2f6b5f8c46375bc32e54c9c985844.tar.bz2
misskey-c1f0fa5bd6b2f6b5f8c46375bc32e54c9c985844.zip
enhance(client): tweak padding
-rw-r--r--CHANGELOG.md2
-rw-r--r--packages/client/src/components/global/spacer.vue3
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a396102b0..dfed918d63 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,7 @@ You should also include the user name that made the change.
## 12.x.x (unreleased)
### Improvements
--
+- クライアント: スマートフォンでの余白を調整 @syuilo
### Bugfixes
- クライアント: ノートの詳細が表示されない問題を修正 @syuilo
diff --git a/packages/client/src/components/global/spacer.vue b/packages/client/src/components/global/spacer.vue
index 8a1d7a4e8a..f2eda1907b 100644
--- a/packages/client/src/components/global/spacer.vue
+++ b/packages/client/src/components/global/spacer.vue
@@ -7,6 +7,7 @@
</template>
<script lang="ts">
+import { deviceKind } from '@/scripts/device-kind';
import { defineComponent, inject, onMounted, onUnmounted, ref } from 'vue';
export default defineComponent({
@@ -35,7 +36,7 @@ export default defineComponent({
const margin = ref(0);
const shouldSpacerMin = inject('shouldSpacerMin', false);
const adjust = (rect: { width: number; height: number; }) => {
- if (shouldSpacerMin) {
+ if (shouldSpacerMin || deviceKind === 'smartphone') {
margin.value = props.marginMin;
return;
}