design: make entityheaders not look like genuine garbage

This commit is contained in:
Xylight committed 2025-10-26 15:34:30 -07:00
1 parent 2c4aae47c7
commit 537e1c4cea
19 files changed
+209 -192

No files matched your search

@@ -1,25 +1,80 @@
<script lang="ts"> <script lang="ts">
import { getContext } from 'svelte'
interface Props { interface Props {
depth?: number depth?: number
raw?: string | undefined raw?: string | undefined
children?: import('svelte').Snippet children?: import('svelte').Snippet
} }
const options = getContext<{ inline: boolean }>('options')
let { depth = 0, raw = undefined, children }: Props = $props() let { depth = 0, raw = undefined, children }: Props = $props()
</script> </script>
{#if depth === 1} {#if depth === 1}
<h1 class="font-bold text-4xl">{@render children?.()}</h1> <h1 class={[options.inline && 'inline']}>
{@render children?.()}
</h1>
{:else if depth === 2} {:else if depth === 2}
<h2 class="font-bold text-3xl">{@render children?.()}</h2> <h2 class={[options.inline && 'inline']}>
{@render children?.()}
</h2>
{:else if depth === 3} {:else if depth === 3}
<h3 class="font-bold text-2xl">{@render children?.()}</h3> <h3 class={[options.inline && 'inline']}>
{@render children?.()}
</h3>
{:else if depth === 4} {:else if depth === 4}
<h4 class="font-semibold text-xl">{@render children?.()}</h4> <h4 class={[options.inline && 'inline']}>{@render children?.()}</h4>
{:else if depth === 5} {:else if depth === 5}
<h5 class="font-semibold text-lg">{@render children?.()}</h5> <h5 class={[options.inline && 'inline']}>{@render children?.()}</h5>
{:else if depth === 6} {:else if depth === 6}
<h6 class="font-semibold text-base">{@render children?.()}</h6> <h6 class={[options.inline && 'inline']}>{@render children?.()}</h6>
{:else} {:else}
{raw} {raw}
{/if} {/if}
<style>
h1,
h2,
h3 {
letter-spacing: var(--tracking-tight);
font-weight: var(--font-weight-semibold);
}
h4,
h5,
h6 {
letter-spacing: var(--tracking-tight);
font-weight: var(--font-weight-medium);
}
h1 {
font-size: var(--text-4xl);
}
h2 {
font-size: var(--text-3xl);
}
h3 {
font-size: var(--text-2xl);
}
h4 {
font-size: var(--text-xl);
}
h5 {
font-size: var(--text-lg);
}
h6 {
font-size: var(--text-base);
}
h1.inline {
font-size: var(--text-2xl);
}
h2.inline {
font-size: var(--text-xl);
}
h3.inline {
font-size: var(--text-lg);
}
</style>
@@ -165,7 +165,7 @@
'NotSubscribed' 'NotSubscribed'
}} }}
class="relative z-[inherit]" class="relative z-[inherit]"
rounding="pill" size="lg"
icon={subscribed != 'NotSubscribed' ? Check : Plus} icon={subscribed != 'NotSubscribed' ? Check : Plus}
> >
{subscribed == 'Subscribed' || subscribed == 'Pending' {subscribed == 'Subscribed' || subscribed == 'Pending'
@@ -177,9 +177,7 @@
{#if client().setFlair} {#if client().setFlair}
<Button <Button
size="custom" size="square-lg"
class="h-9 aspect-square"
rounding="pill"
onclick={() => (setFlair = !setFlair)} onclick={() => (setFlair = !setFlair)}
aria-label={$t('cards.community.flair')} aria-label={$t('cards.community.flair')}
> >
@@ -193,9 +191,7 @@
.includes(community.id)} .includes(community.id)}
<Button <Button
color="secondary" color="secondary"
size="custom" size="square-lg"
rounding="pill"
class="h-9 aspect-square"
href="/c/{fullCommunityName( href="/c/{fullCommunityName(
community.name, community.name,
community.actor_id, community.actor_id,
@@ -206,12 +202,7 @@
{/if} {/if}
<Menu placement="top-end"> <Menu placement="top-end">
{#snippet target(attachment)} {#snippet target(attachment)}
<Button <Button {@attach attachment} size="square-lg" icon={EllipsisHorizontal}
{@attach attachment}
size="custom"
rounding="pill"
class="h-8.5 aspect-square"
icon={EllipsisHorizontal}
></Button> ></Button>
{/snippet} {/snippet}
<MenuButton href="/modlog?community={community.id}"> <MenuButton href="/modlog?community={community.id}">
+9 -13
View File
@@ -1,7 +1,8 @@
<script lang="ts"> <script lang="ts">
import Markdown from '$lib/app/markdown/Markdown.svelte' import Markdown from '$lib/app/markdown/Markdown.svelte'
import { Button } from 'mono-svelte' import { Button } from 'mono-svelte'
import { ChevronDown, Icon } from 'svelte-hero-icons/dist' import { ChevronDoubleDown, Icon } from 'svelte-hero-icons/dist'
import type { ClassValue } from 'svelte/elements'
const MAX_HEIGHT = 192 const MAX_HEIGHT = 192
@@ -18,7 +19,7 @@
clickThrough?: boolean clickThrough?: boolean
element?: string element?: string
style?: string style?: string
class?: string class?: ClassValue
} }
let { let {
@@ -47,30 +48,25 @@
'overflow-hidden bg-linear-to-b text-transparent from-slate-600 via-slate-600', 'overflow-hidden bg-linear-to-b text-transparent from-slate-600 via-slate-600',
'dark:from-zinc-400 dark:via-zinc-400 bg-clip-text z-0 max-h-36', 'dark:from-zinc-400 dark:via-zinc-400 bg-clip-text z-0 max-h-36',
], ],
clickThrough && 'pointer-events-none',
clazz, clazz,
]} ]}
class:pointer-events-none={!clickThrough}
bind:this={element} bind:this={element}
> >
<Markdown source={expanded ? body : body.slice(0, 1000)} /> <Markdown source={expanded ? body : body.slice(0, 1000)} />
{#if overflows} {#if overflows}
<Button <Button
onclick={() => (expanded = !expanded)} onclick={() => (expanded = !expanded)}
size="square-sm" size="square-md"
color="tertiary" color="ghost"
class={[ class={[
'text-black dark:text-white absolute z-10 isolate pointer-events-auto bottom-0', 'text-black dark:text-white absolute z-10 isolate pointer-events-auto bottom-0',
'left-1/2 -translate-x-1/2 mb-4', 'left-1/2 -translate-x-1/2 mb-4 hover:backdrop-blur-lg bg-slate-100 dark:bg-zinc-900/50',
expanded && 'bg-slate-200/50 dark:bg-zinc-900 shadow-md', expanded && 'shadow-md rotate-180',
]} ]}
title="Expand" title="Expand"
> >
<Icon <Icon src={ChevronDoubleDown} size="20" mini />
src={ChevronDown}
size="20"
mini
class="{expanded ? 'rotate-180' : ''} transition-transform"
/>
</Button> </Button>
{/if} {/if}
</svelte:element> </svelte:element>
+3 -3
View File
@@ -52,15 +52,15 @@
}: Props = $props() }: Props = $props()
let optimizedURLs = $derived( let optimizedURLs = $derived(
[2, 3, 6, -1].map((n) => optimizeUrl(url, (res || width) * n)), [1.5, 3].map((n) => optimizeUrl(url, (res || width) * n)),
) )
</script> </script>
{#if optimizedURLs[0] != undefined} {#if url && optimizedURLs[0] != undefined}
<img <img
{...rest} {...rest}
loading="lazy" loading="lazy"
srcset="{optimizedURLs[0]} 1x, {optimizedURLs[1]} 2x, {optimizedURLs[2]} 4x, {optimizedURLs[3]} 6x" srcset="{optimizedURLs[0]} 1x, {optimizedURLs[1]} 2x"
src={optimizedURLs[0]} src={optimizedURLs[0]}
alt="" alt=""
{width} {width}
+71 -96
View File
@@ -1,10 +1,10 @@
<script lang="ts"> <script lang="ts">
import { t } from '$lib/app/i18n' import { PostBody } from '$lib/feature/post'
import Markdown from '$lib/app/markdown/Markdown.svelte' import { Material } from 'mono-svelte'
import { Expandable } from 'mono-svelte'
import type { ClassValue } from 'svelte/elements' import type { ClassValue } from 'svelte/elements'
import FormattedNumber from '../util/FormattedNumber.svelte' import LabelStat from '../info/LabelStat.svelte'
import Avatar from './Avatar.svelte' import Avatar from './Avatar.svelte'
import Blobs from './Blobs.svelte'
interface Props { interface Props {
avatar?: string | undefined avatar?: string | undefined
@@ -17,7 +17,6 @@
value: string value: string
format?: boolean format?: boolean
}[] }[]
center?: boolean
class?: ClassValue class?: ClassValue
nameDetail?: import('svelte').Snippet nameDetail?: import('svelte').Snippet
actions?: import('svelte').Snippet actions?: import('svelte').Snippet
@@ -33,7 +32,6 @@
banner = undefined, banner = undefined,
url = undefined, url = undefined,
stats = [], stats = [],
center = false,
class: clazz = '', class: clazz = '',
nameDetail, nameDetail,
actions, actions,
@@ -44,47 +42,40 @@
}: Props = $props() }: Props = $props()
</script> </script>
<div {...rest} class={['z-10 text-sm contents w-full', clazz]}> <div {...rest} class={['z-10 text-sm contents w-full space-y-4', clazz]}>
<div <Material padding="xl" rounding="3xl" class="flex flex-col gap-4">
class={[ <div
compact == 'lg' && 'lg:hidden', class="relative overflow-hidden rounded-t-[inherit] -m-6 mask-b-from-0"
compact == 'always' && 'hidden', >
'absolute inset-0 h-96 overflow-x-hidden -z-10', {#if banner}
]} <img
> src={banner}
<img class="w-full object-cover h-48 bg-white dark:bg-zinc-900"
src={banner || avatar} height="192"
class="w-full h-64 object-cover blur-3xl opacity-30 dark:opacity-30" alt="User banner"
height="192" />
alt="User banner" {:else}
/> <div class="scale-150">
</div> <Blobs seed={name} />
{#if banner} </div>
<div class="relative overflow-hidden rounded-xl"> {/if}
<img
src={banner}
class="w-full object-cover h-48 rounded-t-xl bg-white dark:bg-zinc-900 rounded-xl"
height="192"
alt="User banner"
/>
</div> </div>
{/if}
<Avatar <Avatar
width={96} width={72}
url={avatar} url={avatar}
alt={name} alt={name}
circle={avatarCircle} circle={avatarCircle}
class={[ class={[
'ring-slate-25 bg-slate-25 dark:bg-zinc-925 ring-6 relative dark:ring-zinc-950', 'ring-slate-25 bg-slate-25 dark:bg-zinc-925 ring-6 relative dark:ring-zinc-950',
banner && '-mt-12 ml-4', '-mt-8',
!avatarCircle && 'rounded-3xl!', !avatarCircle && 'rounded-3xl!',
]} ]}
/> />
<div class="py-4 flex flex-col gap-4">
<div class="flex flex-col flex-1"> <div class="space-y-1">
<svelte:element <svelte:element
this={url ? 'a' : 'span'} this={url ? 'a' : 'h1'}
href={url} href={url}
class="text-2xl font-medium tracking-tight {url class="text-2xl font-medium tracking-tight {url
? 'hover:underline hover:text-primary-900 dark:hover:text-primary-100' ? 'hover:underline hover:text-primary-900 dark:hover:text-primary-100'
@@ -92,72 +83,56 @@
> >
{name} {name}
</svelte:element> </svelte:element>
<span <p
class="flex items-center gap-0 text-sm text-slate-600 dark:text-zinc-400 max-w-full w-max" class="flex items-center gap-0 text-sm text-slate-600 dark:text-zinc-400 max-w-full w-max"
> >
{@render nameDetail?.()} {@render nameDetail?.()}
</span> </p>
</div>
{#if actions} </Material>
<div class="flex flex-col mt-2"> {#if actions || stats}
<div class="space-y-4">
<div class="flex flex-col flex-1">
{#if actions}
{@render actions?.()} {@render actions?.()}
{/if}
</div>
{#if stats.length > 0}
<div
class={[
compact == 'lg' && 'lg:hidden',
compact == 'always' ? 'hidden' : 'flex',
'text-sm flex-row flex-wrap overflow-hidden gap-4 h-full',
]}
>
{#each stats as stat}
<LabelStat
label={stat.name}
content={stat.value}
labelClass="text-sm"
contentClass="text-lg"
/>
{/each}
</div> </div>
{/if} {/if}
</div> </div>
{#if stats.length > 0} {/if}
<div
class={[
compact == 'lg' && 'lg:hidden',
compact == 'always' ? 'hidden' : 'flex',
'text-sm flex-row flex-wrap overflow-hidden gap-4 h-full',
]}
>
{#each stats as stat}
<div class="">
<div class="text-slate-600 dark:text-zinc-500 text-sm font-medium">
{stat.name}
</div>
<div
class="text-xl font-medium text-primary-900 dark:text-primary-100 text-right"
>
{#if stat.format ?? true}
<FormattedNumber
number={Number(stat.value)}
options={{ notation: 'standard' }}
/>
{:else}
{stat.value}
{/if}
</div>
</div>
{/each}
</div>
{/if}
</div>
{#if bio} {#if bio}
<div <PostBody
body={bio}
class={[ class={[
compact == 'lg' && 'lg:hidden', compact == 'lg' && 'lg:hidden',
compact == 'always' && 'hidden', compact == 'always' && 'hidden',
'relative w-full mb-4 text-base', 'relative',
center ? 'text-center' : 'text-left',
]} ]}
> clickThrough={false}
{#if bio.length > 300} />
<Expandable> {/if}
{#snippet title()} {#if children}
{$t('cards.site.about')} <div class="space-y-3 py-4 pt-0 mt-4">
{/snippet} {@render children?.()}
<Markdown source={bio} class="font-normal" />
</Expandable>
{:else}
<Markdown source={bio} class="font-normal" />
{/if}
</div> </div>
{/if} {/if}
<div class="space-y-3 py-4 pt-0">
{@render children?.()}
</div>
</div> </div>
<style> <style>
+3 -1
View File
@@ -7,6 +7,7 @@
formatted?: boolean formatted?: boolean
labelClass?: string labelClass?: string
contentClass?: string contentClass?: string
formatOptions?: Intl.NumberFormatOptions
class?: string class?: string
} }
@@ -17,6 +18,7 @@
labelClass = '', labelClass = '',
contentClass = '', contentClass = '',
class: clazz = '', class: clazz = '',
formatOptions,
}: Props = $props() }: Props = $props()
</script> </script>
@@ -27,7 +29,7 @@
</dt> </dt>
<dd class={['text-base', contentClass]}> <dd class={['text-base', contentClass]}>
{#if formatted} {#if formatted}
<FormattedNumber number={Number(content)} /> <FormattedNumber number={Number(content)} options={formatOptions} />
{:else} {:else}
{content} {content}
{/if} {/if}
+1 -1
View File
@@ -151,7 +151,7 @@
@variant hover { @variant hover {
color: var(--color-slate-900); color: var(--color-slate-900);
background-color: var(--color-slate-200); background-color: var(--color-slate-100);
@variant dark { @variant dark {
color: var(--color-zinc-100); color: var(--color-zinc-100);
background-color: var(--color-zinc-800); background-color: var(--color-zinc-800);
+9 -7
View File
@@ -98,13 +98,6 @@
@variant dark { @variant dark {
color: var(--color-zinc-50); color: var(--color-zinc-50);
} }
@variant md {
background-color: var(--color-slate-200);
@variant dark {
background-color: var(--color-zinc-800);
}
}
} }
transition-property: color; transition-property: color;
@@ -115,6 +108,15 @@
width: max-content; width: max-content;
padding: calc(var(--spacing)) calc(var(--spacing) * 3); padding: calc(var(--spacing)) calc(var(--spacing) * 3);
} }
@variant hover {
@variant md {
background-color: var(--color-slate-100);
@variant dark {
background-color: var(--color-zinc-800);
}
}
}
} }
.nav-btn-selected { .nav-btn-selected {
+4 -9
View File
@@ -99,7 +99,7 @@
type = 'button', type = 'button',
color = 'secondary', color = 'secondary',
size = 'md', size = 'md',
rounding = 'xl', rounding = size == 'lg' || size == 'square-lg' ? '2xl' : 'xl',
alignment = 'center', alignment = 'center',
shadow = color == 'primary' || color == 'secondary' ? 'sm' : 'none', shadow = color == 'primary' || color == 'secondary' ? 'sm' : 'none',
disabled, disabled,
@@ -267,12 +267,7 @@
} }
.btn-ghost { .btn-ghost {
/* border border-slate-200 dark:border-zinc-800 bg-transparent
hover:bg-slate-100 dark:hover:bg-zinc-800 dark:hover:border-zinc-700 dark:text-zinc-400 hover:text-inherit
dark:hover:text-inherit */
border: 1px solid var(--color-slate-200); border: 1px solid var(--color-slate-200);
background-color: transparent;
@variant hover { @variant hover {
background-color: var(--color-slate-100); background-color: var(--color-slate-100);
@@ -306,7 +301,7 @@
.btn-lg { .btn-lg {
padding-block: calc(var(--spacing) * 2); padding-block: calc(var(--spacing) * 2);
padding-inline: calc(var(--spacing) * 3); padding-inline: calc(var(--spacing) * 5);
font-size: var(--text-sm); font-size: var(--text-sm);
} }
@@ -326,8 +321,8 @@
} }
.btn-square-lg { .btn-square-lg {
width: calc(var(--spacing) * 10); width: calc(var(--spacing) * 9.5);
height: calc(var(--spacing) * 10); height: calc(var(--spacing) * 9.5);
} }
.btn-square-xl { .btn-square-xl {
+2 -1
View File
@@ -30,6 +30,7 @@
lg: 'rounded-lg', lg: 'rounded-lg',
xl: 'rounded-xl', xl: 'rounded-xl',
'2xl': 'rounded-2xl', '2xl': 'rounded-2xl',
'3xl': 'rounded-3xl',
full: 'rounded-full', full: 'rounded-full',
} }
@@ -53,7 +54,7 @@
} }
let { let {
elevation = 'medium', elevation = 'low',
padding = 'md', padding = 'md',
rounding = 'xl', rounding = 'xl',
color = 'uniform', color = 'uniform',
+1 -1
View File
@@ -36,7 +36,7 @@
class: clazz = '', class: clazz = '',
}: Props = $props() }: Props = $props()
const modalId = crypto.randomUUID() const modalId = Math.random().toString()
let el = $state<HTMLElement>() let el = $state<HTMLElement>()
let hasHistoryEntry = false let hasHistoryEntry = false
+20 -16
View File
@@ -98,25 +98,29 @@
<Header pageHeader> <Header pageHeader>
{$t('routes.accounts')} {$t('routes.accounts')}
{#snippet extended()} {#snippet extended()}
<div class="flex"> <div class="flex gap-2 items-center flex-wrap">
<div class="flex gap-2 mr-auto items-center"> <Button
href="/accounts/login"
color="primary"
size="lg"
rounding="2xl"
icon={ArrowLeftOnRectangle}
>
{$t('account.login')}
</Button>
<Button href="/signup" size="lg" rounding="2xl" icon={Identification}>
{$t('account.signup')}
</Button>
{#if !LINKED_INSTANCE_URL}
<Button <Button
href="/accounts/login" href="/accounts/login/guest"
rounding="pill" size="lg"
color="primary" rounding="2xl"
icon={ArrowLeftOnRectangle} icon={Plus}
> >
{$t('account.login')} {$t('account.addGuest')}
</Button> </Button>
<Button href="/signup" rounding="pill" icon={Identification}> {/if}
{$t('account.signup')}
</Button>
{#if !LINKED_INSTANCE_URL}
<Button href="/accounts/login/guest" rounding="pill" icon={Plus}>
{$t('account.addGuest')}
</Button>
{/if}
</div>
</div> </div>
{/snippet} {/snippet}
</Header> </Header>
+1 -1
View File
@@ -64,7 +64,7 @@
y: 16, y: 16,
}} }}
> >
<Material padding="none" rounding="none" class="rounded-3xl h-full"> <Material padding="none" rounding="3xl" class="h-full">
<CommunityItemBig {community} /> <CommunityItemBig {community} />
</Material> </Material>
</div> </div>
+3 -5
View File
@@ -45,12 +45,11 @@
<Header pageHeader class="lg:flex-row justify-between flex-col"> <Header pageHeader class="lg:flex-row justify-between flex-col">
{$t('routes.inbox.title')} {$t('routes.inbox.title')}
<div class="flex gap-2 tracking-normal items-center"> <div class="flex gap-2 tracking-normal">
<Button <Button
onclick={() => goto(page.url, { invalidateAll: true })} onclick={() => goto(page.url, { invalidateAll: true })}
size="custom" rounding="2xl"
class="rounded-2xl h-9 aspect-square" size="square-lg"
rounding="none"
aria-label={$t('common.refresh')} aria-label={$t('common.refresh')}
icon={ArrowPath} icon={ArrowPath}
></Button> ></Button>
@@ -58,7 +57,6 @@
onclick={markAllAsRead} onclick={markAllAsRead}
loading={markingAsRead} loading={markingAsRead}
disabled={markingAsRead || data.inbox.value.length == 0} disabled={markingAsRead || data.inbox.value.length == 0}
rounding="pill"
color="primary" color="primary"
icon={Check} icon={Check}
size="lg" size="lg"
+1 -1
View File
@@ -94,7 +94,7 @@
{#snippet startChat()} {#snippet startChat()}
<Button <Button
color="primary" color="primary"
rounding="pill" size="lg"
class="w-max" class="w-max"
onclick={() => (searchModal.open = !searchModal.open)} onclick={() => (searchModal.open = !searchModal.open)}
> >
+2 -2
View File
@@ -99,8 +99,8 @@
loading={batch.progress >= 0} loading={batch.progress >= 0}
disabled={batch.progress >= 0 || data.items.value?.length == 0} disabled={batch.progress >= 0 || data.items.value?.length == 0}
onclick={markAllAsResolved} onclick={markAllAsResolved}
class="h-max ml-auto" size="lg"
rounding="pill" class="ml-auto"
color="primary" color="primary"
> >
<Icon src={Check} size="16" mini /> <Icon src={Check} size="16" mini />
+3 -3
View File
@@ -74,8 +74,8 @@
importText = '' importText = ''
importing = true importing = true
}} }}
rounding="pill"
icon={ArrowDownTray} icon={ArrowDownTray}
size="lg"
> >
{$t('settings.import')} {$t('settings.import')}
</Button> </Button>
@@ -85,8 +85,8 @@
navigator?.clipboard?.writeText?.(json) navigator?.clipboard?.writeText?.(json)
toast({ content: $t('toast.copied') }) toast({ content: $t('toast.copied') })
}} }}
rounding="pill"
icon={ArrowUpTray} icon={ArrowUpTray}
size="lg"
> >
{$t('settings.export')} {$t('settings.export')}
</Button> </Button>
@@ -108,8 +108,8 @@
], ],
}) })
}} }}
rounding="pill"
icon={ArrowPath} icon={ArrowPath}
size="lg"
> >
{$t('settings.reset')} {$t('settings.reset')}
</Button> </Button>
+3 -3
View File
@@ -64,7 +64,7 @@
onclick={() => { onclick={() => {
importing = !importing importing = !importing
}} }}
rounding="pill" size="lg"
disabled={themeData.current.id <= 0} disabled={themeData.current.id <= 0}
> >
<Icon src={ArrowUpTray} size="16" mini /> <Icon src={ArrowUpTray} size="16" mini />
@@ -77,7 +77,7 @@
) )
toast({ content: 'Copied theme to clipboard.' }) toast({ content: 'Copied theme to clipboard.' })
}} }}
rounding="pill" size="lg"
> >
<Icon src={ArrowDownTray} size="16" mini /> <Icon src={ArrowDownTray} size="16" mini />
{$t('settings.export')} {$t('settings.export')}
@@ -109,7 +109,7 @@
body: $t('routes.theme.resetWarning.description'), body: $t('routes.theme.resetWarning.description'),
}) })
}} }}
rounding="pill" size="lg"
> >
<Icon src={ArrowPath} size="16" mini /> <Icon src={ArrowPath} size="16" mini />
{$t('settings.reset')} {$t('settings.reset')}
+8 -10
View File
@@ -70,8 +70,7 @@
{#if profile.current?.user && profile.current.jwt && person.person.id != profile.current.user.local_user_view.person.id} {#if profile.current?.user && profile.current.jwt && person.person.id != profile.current.user.local_user_view.person.id}
<div class="flex items-center gap-2 w-full flex-wrap"> <div class="flex items-center gap-2 w-full flex-wrap">
<Button <Button
size="sm" size="lg"
rounding="pill"
color="primary" color="primary"
href="/inbox/messages/{person.person.id}" href="/inbox/messages/{person.person.id}"
icon={Envelope} icon={Envelope}
@@ -80,8 +79,7 @@
</Button> </Button>
{#if person.person.matrix_user_id} {#if person.person.matrix_user_id}
<Button <Button
size="sm" size="lg"
rounding="pill"
color="secondary" color="secondary"
href="https://matrix.to/#/{person.person.matrix_user_id}" href="https://matrix.to/#/{person.person.matrix_user_id}"
> >
@@ -96,8 +94,8 @@
{#snippet target(attachment)} {#snippet target(attachment)}
<Button <Button
{@attach attachment} {@attach attachment}
size="sm" size="square-lg"
rounding="pill" rounding="2xl"
icon={ShieldCheck} icon={ShieldCheck}
> >
{$t('moderation.label')} {$t('moderation.label')}
@@ -130,11 +128,11 @@
{#snippet target(attachment)} {#snippet target(attachment)}
<Button <Button
{@attach attachment} {@attach attachment}
size="custom" size="square-lg"
class="h-8 w-8" rounding="2xl"
rounding="pill"
icon={EllipsisHorizontal} icon={EllipsisHorizontal}
></Button> aria-label={$t('post.actions.more')}
/>
{/snippet} {/snippet}
<MenuButton <MenuButton
color="danger-subtle" color="danger-subtle"