summaryrefslogtreecommitdiff
path: root/web/source/settings/views/user/profile.tsx
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-07-08 09:38:27 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-08 09:38:27 +0200
commitbbbf6ebe376c7b6c3a64e14571a3a477b880e3ad (patch)
treed24aa92f743de5c440ce786d61cc86f72bf9a3e7 /web/source/settings/views/user/profile.tsx
parent[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27 (#3081) (diff)
downloadgotosocial-bbbf6ebe376c7b6c3a64e14571a3a477b880e3ad.tar.xz
[frontend] Better autocapitalize/spellcheck settings on forms (#3077)
Diffstat (limited to 'web/source/settings/views/user/profile.tsx')
-rw-r--r--web/source/settings/views/user/profile.tsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/source/settings/views/user/profile.tsx b/web/source/settings/views/user/profile.tsx
index a65405faa..17827ce9e 100644
--- a/web/source/settings/views/user/profile.tsx
+++ b/web/source/settings/views/user/profile.tsx
@@ -175,12 +175,15 @@ function UserProfileForm({ data: profile }) {
<TextInput
field={form.displayName}
label="Display name"
- placeholder="A GoToSocial user"
+ placeholder="A GoToSocial User"
+ autoCapitalize="words"
+ spellCheck="false"
/>
<TextArea
field={form.note}
label="Bio"
placeholder="Just trying out GoToSocial, my pronouns are they/them and I like sloths."
+ autoCapitalize="sentences"
rows={8}
/>
<b>Profile fields</b>
@@ -233,6 +236,8 @@ function UserProfileForm({ data: profile }) {
className="monospace"
rows={8}
disabled={!instanceConfig.allowCustomCSS}
+ autoCapitalize="none"
+ spellCheck="false"
/>
<MutationButton
disabled={false}
@@ -270,10 +275,14 @@ function Field({ index, data }) {
<TextInput
field={form.name}
placeholder="Name"
+ autoCapitalize="none"
+ spellCheck="false"
/>
<TextInput
field={form.value}
placeholder="Value"
+ autoCapitalize="none"
+ spellCheck="false"
/>
</div>
);