Skip to content

Commit

Permalink
enhance(client): tweak padding
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 11, 2022
1 parent b01a032 commit c1f0fa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You should also include the user name that made the change.
## 12.x.x (unreleased)

### Improvements
-
- クライアント: スマートフォンでの余白を調整 @syuilo

### Bugfixes
- クライアント: ノートの詳細が表示されない問題を修正 @syuilo
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/components/global/spacer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c1f0fa5

Please sign in to comment.