mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 15:16:07 +09:00
enhance(client): tweak padding
This commit is contained in:
parent
3c65071253
commit
98dd6d0146
@ -13,7 +13,7 @@ You should also include the user name that made the change.
|
|||||||
## 12.x.x (unreleased)
|
## 12.x.x (unreleased)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
-
|
- クライアント: スマートフォンでの余白を調整 @syuilo
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
- クライアント: ノートの詳細が表示されない問題を修正 @syuilo
|
- クライアント: ノートの詳細が表示されない問題を修正 @syuilo
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { deviceKind } from '@/scripts/device-kind';
|
||||||
import { defineComponent, inject, onMounted, onUnmounted, ref } from 'vue';
|
import { defineComponent, inject, onMounted, onUnmounted, ref } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@ -35,7 +36,7 @@ export default defineComponent({
|
|||||||
const margin = ref(0);
|
const margin = ref(0);
|
||||||
const shouldSpacerMin = inject('shouldSpacerMin', false);
|
const shouldSpacerMin = inject('shouldSpacerMin', false);
|
||||||
const adjust = (rect: { width: number; height: number; }) => {
|
const adjust = (rect: { width: number; height: number; }) => {
|
||||||
if (shouldSpacerMin) {
|
if (shouldSpacerMin || deviceKind === 'smartphone') {
|
||||||
margin.value = props.marginMin;
|
margin.value = props.marginMin;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user