tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
added descriptions to the mention notifcation
cozylittle.house
3 months ago
746bddfd
ddebf57d
+3
-17
2 changed files
expand all
collapse all
unified
split
app
(home-pages)
notifications
MentionNotification.tsx
Notification.tsx
+1
-15
app/(home-pages)/notifications/MentionNotification.tsx
···
60
60
actionText={actionText}
61
61
content={
62
62
<ContentLayout postTitle={docRecord.title} pubRecord={pubRecord}>
63
63
-
<div className="text-sm text-secondary">
64
64
-
... this should be some characters in front of{" "}
65
65
-
<span
66
66
-
className={
67
67
-
props.mention_type === "document"
68
68
-
? "italic"
69
69
-
: props.mention_type === "publication"
70
70
-
? "font-bold"
71
71
-
: ""
72
72
-
}
73
73
-
>
74
74
-
{mentionedItemName ? mentionedItemName : "@handleplaceholder"}
75
75
-
</span>{" "}
76
76
-
and some at the end...
77
77
-
</div>
63
63
+
{docRecord.description && docRecord.description}
78
64
</ContentLayout>
79
65
}
80
66
/>
+2
-2
app/(home-pages)/notifications/Notification.tsx
···
72
72
<div className="text-tertiary text-sm italic font-bold ">
73
73
{props.postTitle}
74
74
</div>
75
75
-
{props.children}
75
75
+
{props.children && <div className="mb-2 text-sm">{props.children}</div>}
76
76
{props.pubRecord && (
77
77
<>
78
78
-
<hr className="mt-3 mb-1 border-border-light" />
78
78
+
<hr className="mt-1 mb-1 border-border-light" />
79
79
<a
80
80
href={`https://${props.pubRecord.base_path}`}
81
81
className="relative text-xs text-tertiary flex gap-[6px] items-center font-bold hover:no-underline!"