impr: use label based opening for disclosures
This commit is contained in:
12 files changed
+86
-47
No files matched your search
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import CommentItem from '$comp/lemmy/comment/CommentItem.svelte'
|
||||
import PrivateMessage from '$comp/lemmy/inbox/PrivateMessage.svelte'
|
||||
import Markdown from '$comp/markdown/Markdown.svelte'
|
||||
import Avatar from '$comp/ui/Avatar.svelte'
|
||||
import Expandable from '$comp/ui/Expandable.svelte'
|
||||
import RelativeDate from '$comp/util/RelativeDate.svelte'
|
||||
@@ -63,23 +64,32 @@
|
||||
<div class="flex flex-col">
|
||||
<div class="text-sm font-normal text-slate-600 dark:text-zinc-400">
|
||||
{#if item.type == 'comment_reply'}
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html $t('routes.inbox.item.reply', {
|
||||
user: `<strong>${item.creator.name}</strong>`,
|
||||
post: `<strong>${escapeHtml(item.item.post.name)}</strong>`,
|
||||
})}
|
||||
<Markdown
|
||||
inline
|
||||
source={$t('routes.inbox.item.reply', {
|
||||
user: `**${item.creator.name}**`,
|
||||
post: `**${escapeHtml(item.item.post.name)}**`,
|
||||
})}
|
||||
noStyle
|
||||
/>
|
||||
{:else if item.type == 'person_mention'}
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html $t('routes.inbox.item.mention', {
|
||||
user: `<strong>${item.creator.name}</strong>`,
|
||||
post: `<strong>${escapeHtml(item.item.post.name)}</strong>`,
|
||||
})}
|
||||
<Markdown
|
||||
inline
|
||||
source={$t('routes.inbox.item.mention', {
|
||||
user: `**${item.creator.name}**`,
|
||||
post: `**${escapeHtml(item.item.post.name)}**`,
|
||||
})}
|
||||
noStyle
|
||||
/>
|
||||
{:else if item.type == 'private_message'}
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html $t('routes.inbox.item.message', {
|
||||
user: `<strong>${item.item.creator.name}</strong>`,
|
||||
recipient: `<strong>${item.item.recipient.name}</strong>`,
|
||||
})}
|
||||
<Markdown
|
||||
inline
|
||||
source={$t('routes.inbox.item.message', {
|
||||
user: `**${item.creator.name}**`,
|
||||
recipient: `**${escapeHtml(item.item.recipient.name)}**`,
|
||||
})}
|
||||
noStyle
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="text-xs text-slate-600 dark:text-zinc-400">
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
<button class="h-full" onclick={() => (themeData.data.currentTheme = theme.id)}>
|
||||
<Material
|
||||
padding="none"
|
||||
rounding="none"
|
||||
class="{theme.id == themeData.data.currentTheme
|
||||
? 'ring-2 ring-inset ring-primary-900 dark:ring-primary-100'
|
||||
: ''} flex relative cursor-pointer h-full flex-col text-left p-0.5"
|
||||
rounding="2xl"
|
||||
? 'ring-2 ring-primary-900 dark:ring-primary-100'
|
||||
: ''} rounded-2xl flex relative cursor-pointer h-full flex-col text-left p-0.5"
|
||||
>
|
||||
<div
|
||||
class={[
|
||||
@@ -42,7 +42,7 @@
|
||||
src={CheckCircle}
|
||||
size="20"
|
||||
solid
|
||||
class="absolute top-0 right-0 m-2 text-primary-900 dark:text-primary-100"
|
||||
class="absolute top-0 right-0 m-2 text-primary-100"
|
||||
/>
|
||||
{/if}
|
||||
<div class="px-4 py-2 flex items-center gap-1 justify-between">
|
||||
|
||||
Reference in new issue
Block a user