feat: Add option to show user instances
This commit is contained in:
1 parent
4bfdda2e27
commit
be968d3eb2
6 files changed
+35
-7
No files matched your search
@@ -32,7 +32,7 @@
|
||||
/>
|
||||
<div class="flex flex-col">
|
||||
<CommunityLink community={postRes.community} />
|
||||
<span class="text-slate-500 dark:text-zinc-400 flex flex-row gap-1">
|
||||
<span class="text-slate-600 dark:text-zinc-400 flex flex-row gap-1">
|
||||
<UserLink user={postRes.creator} />
|
||||
<span>•</span>
|
||||
<RelativeDate date={new Date(postRes.post.published)} />
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="bar12" />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
<style lang="postcss">
|
||||
div.spinner {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
@@ -30,13 +30,13 @@
|
||||
div.spinner div {
|
||||
width: 6%;
|
||||
height: 16%;
|
||||
background: #000;
|
||||
position: absolute;
|
||||
left: 49%;
|
||||
top: 43%;
|
||||
opacity: 0;
|
||||
border-radius: 50px;
|
||||
animation: fade 1s linear infinite;
|
||||
@apply bg-black dark:bg-white;
|
||||
}
|
||||
|
||||
@keyframes fade {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import type { Person } from 'lemmy-js-client'
|
||||
|
||||
export let user: Person
|
||||
@@ -19,5 +20,12 @@
|
||||
{#if avatar}
|
||||
<Avatar url={user.avatar} alt={user.name} width={avatarSize} />
|
||||
{/if}
|
||||
{user.name}
|
||||
<span class="flex gap-0">
|
||||
{#if !user.local && $userSettings.showInstance}
|
||||
{user.name}
|
||||
<span class="opacity-50">@{new URL(user.actor_id).hostname}</span>
|
||||
{:else}
|
||||
{user.name}
|
||||
{/if}
|
||||
</span>
|
||||
</a>
|
||||
Reference in new issue
Block a user