misc: make lines on signup page consistent sizes

This commit is contained in:
Xylight committed 2024-09-02 15:14:19 -07:00
1 parent 0977139bc5
commit 1d8a623024
1 file changed
+13 -26
+13 -26
View File
@@ -50,20 +50,6 @@
placeholder = instances?.[placeholderIndex].baseurl placeholder = instances?.[placeholderIndex].baseurl
placeholderIndex++ placeholderIndex++
}, 2000) }, 2000)
// instances = [
// {
// banner: '',
// baseurl: 'fart.net',
// desc: 'a instance',
// downvotes: false,
// fed: true,
// icon: '',
// langs: [''],
// name: 'fart',
// tags: ['okay'],
// },
// ]
} catch (e) { } catch (e) {
toast({ toast({
content: $t('toast.failFetchInstances'), content: $t('toast.failFetchInstances'),
@@ -71,12 +57,6 @@
}) })
} }
}) })
let heights: number[] = []
const addHeight = (node: HTMLButtonElement, index: number) => {
heights.splice(index, 0, node.clientHeight)
}
</script> </script>
<svelte:head> <svelte:head>
@@ -84,12 +64,12 @@
</svelte:head> </svelte:head>
<div class="mx-auto max-w-xl flex flex-col gap-4 my-auto h-max w-full"> <div class="mx-auto max-w-xl flex flex-col gap-4 my-auto h-max w-full">
<Header pageHeader>{$t('form.signup.title')}</Header> <Header>{$t('form.signup.title')}</Header>
<p>{$t('form.signup.description')}</p> <p>{$t('form.signup.description')}</p>
<p> <p>
{$t('form.signup.info')} {$t('form.signup.info')}
</p> </p>
<Material color="distinct" class="h-64 overflow-auto"> <Material color="distinct" class="h-96 overflow-auto" rounding="2xl">
<div <div
class="flex flex-col h-full divide-y divide-slate-200 dark:divide-zinc-800" class="flex flex-col h-full divide-y divide-slate-200 dark:divide-zinc-800"
> >
@@ -97,7 +77,8 @@
{#each instances as instance} {#each instances as instance}
<button <button
on:click={() => (selectedInstance = instance.baseurl ?? '')} on:click={() => (selectedInstance = instance.baseurl ?? '')}
class="flex flex-row gap-2 text-left py-2 first:pt-0 last:pb-0 items-center" class="flex flex-row gap-2 text-left py-2 first:pt-0 last:pb-0 items-center
h-16 max-h-16 min-h-16 overflow-hidden w-full"
> >
<Avatar <Avatar
width={32} width={32}
@@ -105,11 +86,17 @@
alt={instance.name} alt={instance.name}
class="flex-shrink-0" class="flex-shrink-0"
/> />
<div class="flex flex-col"> <div class="flex flex-col max-h-full w-full">
<span class="font-medium text-base"> <span
class="font-medium text-base whitespace-nowrap overflow-ellipsis"
>
{instance.name} {instance.name}
</span> </span>
<span>{instance.desc}</span> <span
class="whitespace-nowrap overflow-ellipsis overflow-hidden w-full"
>
{instance.desc}
</span>
</div> </div>
</button> </button>
{/each} {/each}