Merge pull request #174 from pieterdd/ux-tweaks

A few UX tweaks
This commit is contained in:
Xylight authored and GitHub committed 2023-10-18 07:26:14 -07:00
commit e9fa5f6c42
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -18,7 +18,7 @@
import { flip } from 'svelte/animate' import { flip } from 'svelte/animate'
import { expoOut } from 'svelte/easing' import { expoOut } from 'svelte/easing'
import { Button } from 'mono-svelte' import { Button } from 'mono-svelte'
import { DEFAULT_INSTANCE_URL } from '$lib/instance.js' import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js'
export let route = '' export let route = ''
</script> </script>
@@ -91,9 +91,11 @@
<Icon mini src={Identification} size="20" /> <Icon mini src={Identification} size="20" />
<span slot="label">Sign Up</span> <span slot="label">Sign Up</span>
</SidebarButton> </SidebarButton>
{#if LINKED_INSTANCE_URL === undefined}
<SidebarButton href="/accounts" title="Change Instance"> <SidebarButton href="/accounts" title="Change Instance">
<Icon mini src={ServerStack} size="20" /> <Icon mini src={ServerStack} size="20" />
<span slot="label">Change instance</span> <span slot="label">Change instance</span>
</SidebarButton> </SidebarButton>
{/if} {/if}
{/if}
</nav> </nav>
+3 -2
View File
@@ -158,24 +158,25 @@
Sign up Sign up
</Button> </Button>
</div> </div>
{#if LINKED_INSTANCE_URL === undefined}
<div class="flex flex-row font-normal gap-2"> <div class="flex flex-row font-normal gap-2">
<TextInput <TextInput
label="Guest instance" label="Guest instance"
on:change={changeGuestInstance} on:change={changeGuestInstance}
placeholder="Instance URL" placeholder="Instance URL"
bind:value={newInstance} bind:value={newInstance}
disabled={LINKED_INSTANCE_URL != undefined}
/> />
<Button <Button
color="primary" color="primary"
class="h-max self-end" class="h-max self-end"
size="lg" size="lg"
{loading} {loading}
disabled={loading || LINKED_INSTANCE_URL != undefined} disabled={loading}
> >
Change Change
</Button> </Button>
</div> </div>
{/if}
</div> </div>
</div> </div>
{:else} {:else}