fix: move action slot to name
This commit is contained in:
1 parent
385673bb37
commit
a8c4aa5deb
1 file changed
+8
-7
@@ -48,7 +48,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="p-4 flex flex-col sm:flex-row gap-4 items">
|
<div class="p-4 flex flex-col gap-4 items">
|
||||||
<div class="space-y-3 flex-1 flex flex-col items-center text-center">
|
<div class="space-y-3 flex-1 flex flex-col items-center text-center">
|
||||||
<Avatar
|
<Avatar
|
||||||
width={64}
|
width={64}
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
<svelte:element
|
<svelte:element
|
||||||
this={url ? 'a' : 'span'}
|
this={url ? 'a' : 'span'}
|
||||||
href={url}
|
href={url}
|
||||||
class="text-xl font-semibold {url
|
class="text-2xl font-semibold {url
|
||||||
? 'hover:underline hover:text-primary-900 hover:dark:text-primary-100'
|
? 'hover:underline hover:text-primary-900 hover:dark:text-primary-100'
|
||||||
: ''}"
|
: ''}"
|
||||||
>
|
>
|
||||||
@@ -71,6 +71,12 @@
|
|||||||
>
|
>
|
||||||
<slot name="nameDetail" />
|
<slot name="nameDetail" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{#if $$slots.actions}
|
||||||
|
<div class="flex flex-col mt-2">
|
||||||
|
<slot name="actions" />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if bio}
|
{#if bio}
|
||||||
<div class="relative {center ? 'text-center' : 'text-left'}">
|
<div class="relative {center ? 'text-center' : 'text-left'}">
|
||||||
@@ -83,11 +89,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if $$slots.actions}
|
|
||||||
<div class="space-y-3 flex flex-col" class:sm:pt-12={banner != undefined}>
|
|
||||||
<slot name="actions" />
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-3 p-4 pt-0">
|
<div class="space-y-3 p-4 pt-0">
|
||||||
{#if stats.length > 0}
|
{#if stats.length > 0}
|
||||||
|
|||||||
Reference in new issue
Block a user