appview/pages: more sensible handle input field #686

merged
opened by boltless.me targeting master from push-ukvwpkrpryvm

Preventing mobile browsers from autocorrecting the user handle as normal text. Block that behavior and set autocomplete="username" for convenience.

I haven't tested this properly because I don't want to mess up with my current wip sandboxed environment but should be fine.

Changed files
+7
appview
pages
templates
repo
settings
spindles
user
+2
appview/pages/templates/repo/settings/access.html
···
</label>
<p class="text-sm text-gray-500 dark:text-gray-400">Collaborators can push to this repository.</p>
<input
type="text"
id="add-collaborator"
name="collaborator"
···
</label>
<p class="text-sm text-gray-500 dark:text-gray-400">Collaborators can push to this repository.</p>
<input
+
autocapitalize="none"
+
autocorrect="off"
type="text"
id="add-collaborator"
name="collaborator"
+2
appview/pages/templates/spindles/fragments/addMemberModal.html
···
</label>
<p class="text-sm text-gray-500 dark:text-gray-400">Members can register repositories and run workflows on this spindle.</p>
<input
type="text"
id="member-did-{{ .Id }}"
name="member"
···
</label>
<p class="text-sm text-gray-500 dark:text-gray-400">Members can register repositories and run workflows on this spindle.</p>
<input
+
autocapitalize="none"
+
autocorrect="off"
type="text"
id="member-did-{{ .Id }}"
name="member"
+3
appview/pages/templates/user/login.html
···
<div class="flex flex-col">
<label for="handle">handle</label>
<input
type="text"
id="handle"
name="handle"
···
<div class="flex flex-col">
<label for="handle">handle</label>
<input
+
autocapitalize="none"
+
autocorrect="off"
+
autocomplete="username"
type="text"
id="handle"
name="handle"