-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
画像のドラッグ&ドロップ対応 #384
画像のドラッグ&ドロップ対応 #384
Conversation
packages/web/src/pages/ChatPage.tsx
Outdated
onDrop={handleDrop} | ||
className="fixed bottom-0 left-0 right-0 top-0 z-40 bg-slate-300 p-10 text-center"> | ||
<div className="flex h-full w-full items-center justify-center outline-dashed"> | ||
<div className="font-bold">Drop Files to Upload</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
日本語で構成されているアプリなので、こちらのメッセージも日本語の方が統一感があると思いました!
また、画像ファイルがアップロードできることがわかるメッセージだと親切かと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
日本語に修正しました。
packages/web/src/pages/ChatPage.tsx
Outdated
<div | ||
onDragLeave={handleDragLeave} | ||
onDrop={handleDrop} | ||
className="fixed bottom-0 left-0 right-0 top-0 z-40 bg-slate-300 p-10 text-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
z-40
にしている理由はありますか?
こちらは最前面に表示されるべきものだと思うので、z-[999]
などのように極端な値を設定していた方が良いです(ぱっと見わかりやすいので)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます。既存で z-20 まで使われていたので次に大きいものにしていましたが、z-[999] の方がいいですね。修正しました。
472a29c
to
1c9a6b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Issue #, if available:
#367
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.