mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 14:04:21 +01:00
fix: add labels to buttons in NotePostForm
This commit is contained in:
@@ -405,6 +405,8 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
|
|||||||
'w-8': mode() === 'reply',
|
'w-8': mode() === 'reply',
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
|
aria-label={i18n.t('posting.close')}
|
||||||
|
title={i18n.t('posting.close')}
|
||||||
onClick={() => close()}
|
onClick={() => close()}
|
||||||
>
|
>
|
||||||
<span class="inline-block size-5 text-fg-secondary/70">
|
<span class="inline-block size-5 text-fg-secondary/70">
|
||||||
@@ -425,6 +427,8 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
|
|||||||
'p-[6px]': mode() === 'reply',
|
'p-[6px]': mode() === 'reply',
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
|
aria-label={i18n.t('posting.emojiPicker')}
|
||||||
|
title={i18n.t('posting.emojiPicker')}
|
||||||
onClick={() => emojiPickerPopup.open()}
|
onClick={() => emojiPickerPopup.open()}
|
||||||
>
|
>
|
||||||
<FaceSmile />
|
<FaceSmile />
|
||||||
|
|||||||
@@ -13,10 +13,12 @@ export default {
|
|||||||
posting: {
|
posting: {
|
||||||
placeholder: "What's happening?",
|
placeholder: "What's happening?",
|
||||||
placeholderReply: 'Post a reply',
|
placeholderReply: 'Post a reply',
|
||||||
|
emojiPicker: 'Emoji',
|
||||||
contentWarning: 'Content warning',
|
contentWarning: 'Content warning',
|
||||||
contentWarningReason: 'Reason of warning',
|
contentWarningReason: 'Reason of warning',
|
||||||
uploadImage: 'Upload image',
|
uploadImage: 'Upload image',
|
||||||
submit: 'Submit',
|
submit: 'Submit',
|
||||||
|
close: 'Close',
|
||||||
forbiddenToIncludeNsec: 'You cannot include private key (nsec).',
|
forbiddenToIncludeNsec: 'You cannot include private key (nsec).',
|
||||||
failedToUploadFile: 'Failed to upload files: {{filenames}}',
|
failedToUploadFile: 'Failed to upload files: {{filenames}}',
|
||||||
replyToPre: 'Reply to',
|
replyToPre: 'Reply to',
|
||||||
|
|||||||
@@ -12,10 +12,12 @@ export default {
|
|||||||
posting: {
|
posting: {
|
||||||
placeholder: 'いまどうしてる?',
|
placeholder: 'いまどうしてる?',
|
||||||
placeholderReply: '返信を投稿',
|
placeholderReply: '返信を投稿',
|
||||||
|
emojiPicker: '絵文字を追加',
|
||||||
contentWarning: 'コンテンツ警告を設定',
|
contentWarning: 'コンテンツ警告を設定',
|
||||||
contentWarningReason: '警告の理由',
|
contentWarningReason: '警告の理由',
|
||||||
uploadImage: '画像を投稿',
|
uploadImage: '画像を投稿',
|
||||||
submit: '投稿',
|
submit: '投稿',
|
||||||
|
close: '閉じる',
|
||||||
forbiddenToIncludeNsec: '投稿に秘密鍵(nsec)を含めることはできません。',
|
forbiddenToIncludeNsec: '投稿に秘密鍵(nsec)を含めることはできません。',
|
||||||
failedToUploadFile: 'ファイルのアップロードに失敗しました: {{filenames}}',
|
failedToUploadFile: 'ファイルのアップロードに失敗しました: {{filenames}}',
|
||||||
replyToPre: '',
|
replyToPre: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user