design: make signup page look slightly less awful (#717)

* design: make signup page look slightly less awful (allow commonlist in virtualizer)

* misc: make buttons and menus unselectable

* feat: add recommended instances

* fix: broken piefed notifications count
This commit is contained in:
xylight authored and GitHub committed 2026-02-17 05:03:13 +00:00
1 parent ee7c097f80
commit ec7fd81304
14 files changed
+222 -166

No files matched your search

+2
View File
@@ -178,6 +178,8 @@
flex-direction: row;
align-items: center;
font-size: var(--text-sm);
user-select: none;
-webkit-user-select: none;
transition: 75ms cubic-bezier(0.075, 0.82, 0.165, 1);
@@ -32,7 +32,7 @@
'dark:hover:text-primary-100 transition-colors z-0 group relative cursor-pointer',
]}
>
<div class="flex flex-row gap-1 items-center w-full">
<div class="flex flex-row gap-1 items-center w-full select-none">
{@render title?.(open)}
</div>
{#if icon}
+15 -8
View File
@@ -1,5 +1,6 @@
<script module lang="ts">
import { Label } from 'mono-svelte'
import { Icon, type IconSource } from 'svelte-hero-icons/dist'
import type { HTMLInputAttributes } from 'svelte/elements'
import { generateID } from './helper'
@@ -28,6 +29,7 @@
shadow?: Shadow
element?: HTMLInputElement | undefined
class?: string
icon?: IconSource
customLabel?: import('svelte').Snippet
prefix?: import('svelte').Snippet
suffix?: import('svelte').Snippet
@@ -41,14 +43,15 @@
const borderClass = `border border-slate-200 border-b-slate-300 dark:border-zinc-800`
let {
label = undefined,
label,
value = $bindable(),
placeholder = '',
disabled = false,
required = false,
size = 'md',
id = generateID(),
inlineAffixes = false,
icon,
inlineAffixes = !!icon,
shadow = 'sm',
element = $bindable(),
class: clazz = '',
@@ -84,15 +87,19 @@
clazz,
]}
>
{#if prefix}
{#if prefix || icon}
<div
class={[
'rounded-xl rounded-r-none text-slate-600 dark:text-zinc-400',
inlineAffixes && 'bg-white dark:bg-zinc-900 pr-0 w-8',
sizeClass[size],
inlineAffixes &&
'bg-white dark:bg-zinc-900 pr-0 px-3 h-full flex items-center',
]}
>
{@render prefix?.()}
{#if prefix}
{@render prefix?.()}
{:else if icon}
<Icon src={icon} size="20" mini />
{/if}
</div>
{/if}
<input
@@ -110,8 +117,8 @@
focus:outline-hidden rounded-xl text-sm w-full disabled:bg-slate-100
disabled:cursor-not-allowed dark:disabled:bg-zinc-800 invalid:border-red-500!
peer invalid:text-red-500 z-10`,
prefix && 'rounded-l-none',
prefix && inlineAffixes && 'border-l-0',
(prefix || icon) && 'rounded-l-none',
(prefix || icon) && inlineAffixes && 'border-l-0',
suffix && 'rounded-r-none',
suffix && inlineAffixes && 'border-r-0',
clazz,
+8 -2
View File
@@ -220,8 +220,8 @@
.material-info {
background: linear-gradient(
to bottom,
--alpha(var(--color-slate-300) / 10%),
--alpha(var(--color-slate-500) / 15%)
--alpha(var(--color-slate-200) / 10%),
--alpha(var(--color-slate-300) / 15%)
);
color: var(--color-slate-900);
@@ -229,6 +229,12 @@
@variant dark {
color: var(--color-slate-300);
background: linear-gradient(
to bottom,
--alpha(var(--color-slate-300) / 10%),
--alpha(var(--color-slate-500) / 15%)
);
}
}
}
+1 -1
View File
@@ -46,7 +46,7 @@
>
{#snippet popover()}
<div
class="w-full max-w-sm max-h-128 overflow-auto list-none shadow-lg rounded-xl"
class="w-full max-w-sm max-h-128 overflow-auto list-none shadow-lg rounded-xl select-none"
>
<div
class="flex flex-col p-1 list-none bg-white/80 dark:bg-zinc-900/90 rounded-xl