design: improve entityheader design
This commit is contained in:
1 parent
23834137a7
commit
53ec967dce
8 files changed
+198
-141
No files matched your search
@@ -68,8 +68,8 @@
|
||||
</button>
|
||||
{#if moderators.length > 0}
|
||||
<Expandable
|
||||
bind:open={$userSettings.expand.team}
|
||||
class="py-2 border-y border-slate-200 dark:border-zinc-800"
|
||||
class="border rounded-xl bg-white/50 dark:bg-zinc-900/50 w-full p-3 px-4
|
||||
dark:border-zinc-800 border-slate-300 border-opacity-50 text-slate-700 dark:text-zinc-300 transition-colors"
|
||||
>
|
||||
<svelte:fragment slot="title">
|
||||
<ShieldIcon width={15} filled />
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
body={post.post.body}
|
||||
{view}
|
||||
style="grid-area: body"
|
||||
class="relative"
|
||||
/>
|
||||
{/if}
|
||||
{#if actions}
|
||||
|
||||
@@ -47,9 +47,9 @@ ${view == 'list' ? `max-h-24` : 'max-h-48'}`
|
||||
on:click={() => (expanded = !expanded)}
|
||||
size="square-sm"
|
||||
color="tertiary"
|
||||
class="text-black dark:text-white absolute z-10 isolate drop-shadow-xl pointer-events-auto {expanded
|
||||
? 'bottom-6'
|
||||
: 'bottom-16'} left-1/2 -translate-x-1/2"
|
||||
class="text-black dark:text-white absolute z-10 isolate pointer-events-auto bottom-0 {expanded
|
||||
? 'bg-slate-200/50 dark:bg-zinc-900 border shadow-md'
|
||||
: ''} left-1/2 -translate-x-1/2 mb-4"
|
||||
title="Expand"
|
||||
>
|
||||
<Icon
|
||||
|
||||
@@ -102,8 +102,6 @@
|
||||
}
|
||||
|
||||
let popoverOpen = false
|
||||
|
||||
$: console.log(popoverOpen)
|
||||
</script>
|
||||
|
||||
<!--
|
||||
|
||||
Reference in new issue
Block a user