mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[frontend] Better autocapitalize/spellcheck settings on forms (#3077)
This commit is contained in:
@ -100,7 +100,7 @@ export default function HeaderPermCreateForm({ permType }: { permType: PermType
|
||||
field={form.header}
|
||||
label={
|
||||
<>
|
||||
HTTP Header Name
|
||||
Header Name
|
||||
<a
|
||||
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers"
|
||||
target="_blank"
|
||||
@ -112,12 +112,15 @@ export default function HeaderPermCreateForm({ permType }: { permType: PermType
|
||||
</>
|
||||
}
|
||||
placeholder={"User-Agent"}
|
||||
autoCapitalize="none"
|
||||
spellCheck="false"
|
||||
{...{className: "monospace"}}
|
||||
/>
|
||||
<TextInput
|
||||
field={form.regex}
|
||||
label={
|
||||
<>
|
||||
HTTP Header Value RE2 Regex
|
||||
Value Regex
|
||||
<a
|
||||
href="https://github.com/google/re2/wiki/Syntax"
|
||||
target="_blank"
|
||||
@ -129,6 +132,8 @@ export default function HeaderPermCreateForm({ permType }: { permType: PermType
|
||||
</>
|
||||
}
|
||||
placeholder={"^.*Some-User-Agent.*$"}
|
||||
autoCapitalize="none"
|
||||
spellCheck="false"
|
||||
{...{className: "monospace"}}
|
||||
/>
|
||||
<MutationButton
|
||||
|
@ -164,7 +164,7 @@ function PermDeets({
|
||||
<dl className="info-list">
|
||||
<div className="info-list-entry">
|
||||
<dt>ID</dt>
|
||||
<dd>{perm.id}</dd>
|
||||
<dd className="monospace">{perm.id}</dd>
|
||||
</div>
|
||||
<div className="info-list-entry">
|
||||
<dt>Created</dt>
|
||||
@ -176,10 +176,10 @@ function PermDeets({
|
||||
</div>
|
||||
<div className="info-list-entry">
|
||||
<dt>Header Name</dt>
|
||||
<dd>{perm.header}</dd>
|
||||
<dd className="monospace">{perm.header}</dd>
|
||||
</div>
|
||||
<div className="info-list-entry">
|
||||
<dt>Header Value Regex</dt>
|
||||
<dt>Value Regex</dt>
|
||||
<dd className="monospace">{perm.regex}</dd>
|
||||
</div>
|
||||
<div className="info-list-entry">
|
||||
|
Reference in New Issue
Block a user