syusui-s / rabbit

🐰 A nostr client like TweetDeck
https://rabbit.syusui.net
GNU Affero General Public License v3.0
72 stars 14 forks source link

feat: enable autofocus of EmojiPicker #84

Closed penpenpng closed 8 months ago

penpenpng commented 8 months ago

EmojiPicker の検索欄に自動でフォーカスが当たると便利だと感じました。

もとのコードでは明示的に autoFocus: false とされていたので、方針に反するようなら本件は遠慮なくクローズしてください。あるいはユーザオプションに autoFocus を制御するフラグを加える方針が許されるならば、仰ってくれれば変更を加えます。

syusui-s commented 8 months ago

iOSだと自動フォーカス時に勝手にズームされてしまう問題があって、autofocusを無効にしていました。

index.tsxを以下のように変更いただけると嬉しいです。

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
penpenpng commented 8 months ago

7627134<meta> を修正しました

syusui-s commented 8 months ago

https://github.com/syusui-s/rabbit/commit/1a26a7c1477ab09b8997c083453baf29a52fb113

size周りのformatの問題は上記コミットで修正してあるので、git fetch && git rebase origin/main していただけないでしょうか?:bow:

(多分tsconfig周りでエラーが出るのですが、僕のほうでそこはなおします)

penpenpng commented 8 months ago

おっと…

penpenpng commented 8 months ago

style: format を drop して force push しました 🙇

syusui-s commented 8 months ago

ありがとうございます!!マージしました