Hint for enter key in post status form

This commit is contained in:
Henry Jameson 2026-07-22 01:21:18 +03:00
commit 0f8ebd9c85
3 changed files with 18 additions and 1 deletions

View file

@ -16,7 +16,7 @@
.form-bottom {
display: flex;
justify-content: space-between;
padding: 0.5em;
padding: 0.5em 0.5em 0.25em;
height: 2.5em;
.post-button-group {
@ -210,6 +210,13 @@
flex-direction: column;
}
.keyboard-enter-hint {
text-align: right;
margin-right: 1em;
line-height: 1;
margin-bottom: 0.5em;
}
textarea.input.form-post-body {
// TODO: make a resizable textarea component?
box-sizing: content-box; // needed for easier computation of dynamic size

View file

@ -381,6 +381,14 @@
</Popover>
</div>
</div>
<small class="keyboard-enter-hint faint">
<i v-if="submitOnEnter">
{{ $t('post_status.enter_submits') }}
</i>
<i v-else>
{{ $t('post_status.enter_newline') }}
</i>
</small>
<div
v-show="showDropIcon !== 'hide'"
:style="{ animation: showDropIcon === 'show' ? 'fade-in 0.25s' : 'fade-out 0.5s' }"

View file

@ -306,6 +306,8 @@
},
"content_type_selection": "Post format",
"content_warning": "Subject (optional)",
"enter_submits": "Enter key sends the post",
"enter_newline": "Enter key adds a newline",
"default": "Just landed in L.A.",
"direct_warning_to_all": "This post will be visible to all the mentioned users.",
"direct_warning_to_first_only": "This post will only be visible to the mentioned users at the beginning of the message.",