prep: replace $$props.class with props
This commit is contained in:
1 parent
3ca72662ca
commit
0718c8e0c6
69 files changed
+383
-214
No files matched your search
@@ -14,12 +14,12 @@
|
||||
export let user: PersonView
|
||||
export let view: 'cozy' | 'compact' = 'compact'
|
||||
export let showCounts: boolean = true
|
||||
|
||||
let clazz: string = 'py-4 flex flex-col gap-4 text-sm max-w-full relative'
|
||||
export { clazz as class }
|
||||
</script>
|
||||
|
||||
<div
|
||||
class={$$props.class ??
|
||||
'py-4 flex flex-col gap-4 text-sm max-w-full relative'}
|
||||
>
|
||||
<div class={clazz}>
|
||||
<div
|
||||
class="flex
|
||||
{view == 'cozy'
|
||||
|
||||
@@ -65,11 +65,14 @@
|
||||
export let displayName = $userSettings.displayNames
|
||||
|
||||
$: envBadge = getEnvBadge(user.actor_id)
|
||||
|
||||
export let instanceClass: string = ''
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
</script>
|
||||
|
||||
<a
|
||||
class="items-center flex flex-row gap-1 hover:underline max-w-full min-w-0 {$$props.class ??
|
||||
''}"
|
||||
class="items-center flex flex-row gap-1 hover:underline max-w-full min-w-0 {clazz}"
|
||||
href="/u/{user.name}@{new URL(user.actor_id).hostname}"
|
||||
data-sveltekit-preload-data="tap"
|
||||
>
|
||||
@@ -94,7 +97,7 @@
|
||||
</span>
|
||||
{#if showInstance}
|
||||
<span
|
||||
class="text-slate-500 dark:text-zinc-500 font-normal instance-text flex-shrink {$$props.instanceClass ??
|
||||
class="text-slate-500 dark:text-zinc-500 font-normal instance-text flex-shrink {instanceClass ??
|
||||
''}"
|
||||
>
|
||||
@{new URL(user.actor_id).hostname}
|
||||
|
||||
Reference in new issue
Block a user