misc: hide instance URL in login page if linked instance url

This commit is contained in:
Xyphyn committed 2023-08-19 18:22:11 -07:00
1 parent 9df7dc0604
commit 8ecf656e5f
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "photon-lemmy", "name": "photon-lemmy",
"version": "0.9.13", "version": "0.9.14",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
+3 -1
View File
@@ -72,6 +72,7 @@
}} }}
required required
/> />
{#if !LINKED_INSTANCE_URL}
<span class="mt-5 font-bold">@</span> <span class="mt-5 font-bold">@</span>
<TextInput <TextInput
id="instance_url" id="instance_url"
@@ -83,6 +84,7 @@
required required
pattern={'(?!-)[A-Za-z0-9-]+([-.]{1}[a-z0-9]+)*.[A-Za-z]{2,6}'} pattern={'(?!-)[A-Za-z0-9-]+([-.]{1}[a-z0-9]+)*.[A-Za-z]{2,6}'}
/> />
{/if}
</div> </div>
<div class="flex flex-row gap-2"> <div class="flex flex-row gap-2">
<TextInput <TextInput
@@ -101,7 +103,7 @@
pattern={'\\d{6}'} pattern={'\\d{6}'}
minlength={6} minlength={6}
maxlength={6} maxlength={6}
class="w-20" class="w-24"
on:input={(e) => { on:input={(e) => {
if (!Number.isInteger(Number(e.detail.data))) { if (!Number.isInteger(Number(e.detail.data))) {
e.preventDefault() e.preventDefault()