mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 08:27:29 -06:00
[frontend] Better autocapitalize/spellcheck settings on forms (#3077)
This commit is contained in:
parent
5769722c58
commit
bbbf6ebe37
20 changed files with 205 additions and 38 deletions
|
|
@ -126,6 +126,8 @@ export function CategorySelect({ field, children }: PropsWithChildren<CategorySe
|
|||
items={categoryItems}
|
||||
label="Category"
|
||||
placeholder="e.g., reactions"
|
||||
autoCapitalize="none"
|
||||
spellCheck="false"
|
||||
>
|
||||
{children}
|
||||
</ComboBox>
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ export default function NewEmojiForm() {
|
|||
<TextInput
|
||||
field={form.shortcode}
|
||||
label="Shortcode, must be unique among the instance's local emoji"
|
||||
autoCapitalize="none"
|
||||
spellCheck="false"
|
||||
{...{pattern: "^\\w{2,30}$"}}
|
||||
/>
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,8 @@ function EmojiList({ emoji }: EmojiListParams) {
|
|||
field={filterField}
|
||||
name="emoji-shortcode"
|
||||
placeholder="Search"
|
||||
autoCapitalize="none"
|
||||
spellCheck="false"
|
||||
/>
|
||||
</div>
|
||||
<div className="entries scrolling">
|
||||
|
|
|
|||
|
|
@ -52,9 +52,10 @@ export default function StealThisLook({ emojiCodes }) {
|
|||
</label>
|
||||
<div className="row">
|
||||
<input
|
||||
type="text"
|
||||
id="url"
|
||||
name="url"
|
||||
type="url"
|
||||
pattern="(http|https):\/\/.+"
|
||||
onChange={urlField.onChange}
|
||||
value={urlField.value}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue