feat(frontend): スマホ・タブレットの場合、チャンネルの投稿フォームに自動でフォーカスしないように (#10051)

* feat(frontend): スマホ・タブレットの場合、チャンネルの投稿フォームに自動でフォーカスしない

* Update CHANGELOG.md
This commit is contained in:
arrow2nd 2023-02-24 10:31:21 +09:00 committed by GitHub
parent e516a63272
commit 9c787a578e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## 13.x.x (unreleased)
### Improvements
- Frontend: スマホ・タブレットの場合、チャンネルの投稿フォームに自動でフォーカスしないように
### Bugfixes
-

View File

@ -23,7 +23,8 @@
</div>
</div>
<MkPostForm v-if="$i" :channel="channel" class="post-form _panel _margin" fixed/>
<!-- スマホタブレットの場合キーボードが表示されると投稿が見づらくなるのでデスクトップ場合のみ自動でフォーカスを当てる -->
<MkPostForm v-if="$i" :channel="channel" class="post-form _panel _margin" fixed :autofocus="deviceKind === 'desktop'"/>
<MkTimeline :key="channelId" class="_margin" src="channel" :channel="channelId" @before="before" @after="after"/>
</div>
@ -41,6 +42,7 @@ import { useRouter } from '@/router';
import { $i } from '@/account';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
import { deviceKind } from '@/scripts/device-kind';
const router = useRouter();