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 block padding on publication posts
awarm.space
7 months ago
d92ecb86
3ec9aa8a
+4
-2
3 changed files
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
PostContent.tsx
PubCodeBlock.tsx
StaticMathBlock.tsx
+2
app/lish/[did]/[publication]/[rkey]/PostContent.tsx
···
86
86
let className = `
87
87
postBlockWrapper
88
88
pt-1
89
89
+
min-h-7
89
90
${isList ? "isListItem pb-0 " : "pb-2 last:pb-3 last:sm:pb-4 first:pt-2 sm:first:pt-3"}
90
91
${alignment}
91
92
`;
···
120
121
href={b.block.src}
121
122
target="_blank"
122
123
className={`
124
124
+
my-2
123
125
externalLinkBlock flex relative group/linkBlock
124
126
h-[104px] w-full bg-bg-page overflow-hidden text-primary hover:no-underline no-underline
125
127
hover:border-accent-contrast shadow-sm
+1
-1
app/lish/[did]/[publication]/[rkey]/PubCodeBlock.tsx
···
21
21
}, [block]);
22
22
return (
23
23
<div
24
24
-
className="w-full min-h-[42px] rounded-md border-border-light outline-border-light selected-outline"
24
24
+
className="w-full min-h-[42px] my-2 rounded-md border-border-light outline-border-light selected-outline"
25
25
dangerouslySetInnerHTML={{ __html: html || "" }}
26
26
/>
27
27
);
+1
-1
app/lish/[did]/[publication]/[rkey]/StaticMathBlock.tsx
···
13
13
throwOnError: false,
14
14
});
15
15
return (
16
16
-
<div className="math-block">
16
16
+
<div className="math-block my-2">
17
17
<div dangerouslySetInnerHTML={{ __html: html }} />
18
18
</div>
19
19
);