misc: tweak user link color
This commit is contained in:
1 parent
e7c7f4baf3
commit
1400779b18
6 files changed
+7
-6
No files matched your search
@@ -12,7 +12,7 @@
|
|||||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||||
import CommentForm from './CommentForm.svelte'
|
import CommentForm from './CommentForm.svelte'
|
||||||
import { page } from '$app/stores'
|
import { page } from '$app/stores'
|
||||||
import UserLink from '$lib/components/user/UserLink.svelte'
|
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
||||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||||
import CommentActions from '$lib/components/lemmy/comment/CommentActions.svelte'
|
import CommentActions from '$lib/components/lemmy/comment/CommentActions.svelte'
|
||||||
import { createEventDispatcher } from 'svelte'
|
import { createEventDispatcher } from 'svelte'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte'
|
import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte'
|
||||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||||
import Badge from '$lib/components/ui/Badge.svelte'
|
import Badge from '$lib/components/ui/Badge.svelte'
|
||||||
import UserLink from '$lib/components/user/UserLink.svelte'
|
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
||||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||||
import type { Community, Person } from 'lemmy-js-client'
|
import type { Community, Person } from 'lemmy-js-client'
|
||||||
import { Bookmark, Icon, InformationCircle, Trash } from 'svelte-hero-icons'
|
import { Bookmark, Icon, InformationCircle, Trash } from 'svelte-hero-icons'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
PencilSquare,
|
PencilSquare,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
||||||
import UserLink from '$lib/components/user/UserLink.svelte'
|
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
||||||
|
|
||||||
export let user: PersonView
|
export let user: PersonView
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+2
-1
@@ -6,6 +6,7 @@
|
|||||||
export let user: Person
|
export let user: Person
|
||||||
export let avatar: boolean = false
|
export let avatar: boolean = false
|
||||||
export let avatarSize = 24
|
export let avatarSize = 24
|
||||||
|
export let badges = true
|
||||||
|
|
||||||
function linkFromCommunity(user: Person) {
|
function linkFromCommunity(user: Person) {
|
||||||
const domain = new URL(user.actor_id).hostname
|
const domain = new URL(user.actor_id).hostname
|
||||||
@@ -23,7 +24,7 @@
|
|||||||
<span class="flex gap-0">
|
<span class="flex gap-0">
|
||||||
{#if !user.local && $userSettings.showInstance}
|
{#if !user.local && $userSettings.showInstance}
|
||||||
{user.name}
|
{user.name}
|
||||||
<span class="opacity-60 font-normal">
|
<span class="text-slate-500 dark:text-zinc-400 font-normal">
|
||||||
@{new URL(user.actor_id).hostname}
|
@{new URL(user.actor_id).hostname}
|
||||||
</span>
|
</span>
|
||||||
{:else}
|
{:else}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||||
import Card from '$lib/components/ui/Card.svelte'
|
import Card from '$lib/components/ui/Card.svelte'
|
||||||
import { ToastType, addToast } from '$lib/components/ui/toasts/toasts.js'
|
import { ToastType, addToast } from '$lib/components/ui/toasts/toasts.js'
|
||||||
import UserLink from '$lib/components/user/UserLink.svelte'
|
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
||||||
import { authData, getClient, user } from '$lib/lemmy.js'
|
import { authData, getClient, user } from '$lib/lemmy.js'
|
||||||
import { Color } from '$lib/ui/colors.js'
|
import { Color } from '$lib/ui/colors.js'
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
import { authData, getClient, user } from '$lib/lemmy.js'
|
import { authData, getClient, user } from '$lib/lemmy.js'
|
||||||
import CommentForm from '$lib/components/lemmy/comment/CommentForm.svelte'
|
import CommentForm from '$lib/components/lemmy/comment/CommentForm.svelte'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import UserLink from '$lib/components/user/UserLink.svelte'
|
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
||||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||||
|
|||||||
Reference in new issue
Block a user