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
fix share links in postlisting
awarm.space
1 month ago
d47528cd
00eacbbf
+12
-3
1 changed file
expand all
collapse all
unified
split
components
PostListing.tsx
+12
-3
components/PostListing.tsx
···
53
53
return;
54
54
}
55
55
let alpha = Number(
56
56
-
window.getComputedStyle(elRef.current).getPropertyValue("--bg-page-alpha"),
56
56
+
window
57
57
+
.getComputedStyle(elRef.current)
58
58
+
.getPropertyValue("--bg-page-alpha"),
57
59
);
58
60
setHasBackgroundImage(alpha < 0.7);
59
61
}, [themeRecord?.backgroundImage?.image]);
···
75
77
pubRecord?.preferences,
76
78
);
77
79
78
78
-
let quotes = props.documents.mentionsCount ?? props.documents.document_mentions_in_bsky?.[0]?.count ?? 0;
80
80
+
let quotes =
81
81
+
props.documents.mentionsCount ??
82
82
+
props.documents.document_mentions_in_bsky?.[0]?.count ??
83
83
+
0;
79
84
let comments =
80
85
mergedPrefs.showComments === false
81
86
? 0
···
281
286
let mouseY = e.clientY;
282
287
283
288
if (!props.postUrl) return;
284
284
-
navigator.clipboard.writeText(`leaflet.pub${props.postUrl}`);
289
289
+
navigator.clipboard.writeText(
290
290
+
props.postUrl.includes("http")
291
291
+
? props.postUrl
292
292
+
: `leaflet.pub/${props.postUrl}`,
293
293
+
);
285
294
286
295
smoker({
287
296
text: <strong>Copied Link!</strong>,