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
add negative margin to published quote blocks
awarm.space
7 months ago
651ae888
1252e96f
+4
-1
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
PostContent.tsx
+4
-1
app/lish/[did]/[publication]/[rkey]/PostContent.tsx
···
40
40
block={b}
41
41
did={did}
42
42
key={index}
43
43
+
previousBlock={blocks[index - 1]}
43
44
index={[index]}
44
45
preview={preview}
45
46
prerenderedCodeBlocks={prerenderedCodeBlocks}
···
56
57
isList,
57
58
index,
58
59
preview,
60
60
+
previousBlock,
59
61
prerenderedCodeBlocks,
60
62
}: {
61
63
preview?: boolean;
···
63
65
block: PubLeafletPagesLinearDocument.Block;
64
66
did: string;
65
67
isList?: boolean;
68
68
+
previousBlock?: PubLeafletPagesLinearDocument.Block;
66
69
prerenderedCodeBlocks?: Map<string, string>;
67
70
}) => {
68
71
let b = block;
···
200
203
case PubLeafletBlocksBlockquote.isMain(b.block): {
201
204
return (
202
205
<blockquote
203
203
-
className={`border-l-2 border-border pl-2 ${className}`}
206
206
+
className={`border-l-2 border-border pl-2 ${className} ${PubLeafletBlocksBlockquote.isMain(previousBlock?.block) ? "-mt-2" : ""}`}
204
207
{...blockProps}
205
208
>
206
209
<TextBlock