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
27
pulls
pipelines
show three lines for block previews
awarm.space
1 week ago
fcd70868
61ea31ca
+13
-1
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
Blocks
PublishedPageBlock.tsx
+13
-1
app/lish/[did]/[publication]/[rkey]/Blocks/PublishedPageBlock.tsx
···
92
92
prerenderedCodeBlocks?: Map<string, string>;
93
93
bskyPostData: AppBskyFeedDefs.PostView[];
94
94
}) {
95
95
-
let [title, description] = props.blocks
95
95
+
let [title, description, thirdLine] = props.blocks
96
96
.map((b) => b.block)
97
97
.filter(
98
98
(b) => PubLeafletBlocksText.isMain(b) || PubLeafletBlocksHeader.isMain(b),
···
128
128
<TextBlock
129
129
facets={description.facets}
130
130
plaintext={description.plaintext}
131
131
+
index={[]}
132
132
+
preview
133
133
+
/>
134
134
+
</div>
135
135
+
)}
136
136
+
{thirdLine && (
137
137
+
<div
138
138
+
className={`pageBlockLineThree outline-none resize-none align-top gap-2 ${thirdLine.$type === "pub.leaflet.blocks.header" ? "font-bold" : ""}`}
139
139
+
>
140
140
+
<TextBlock
141
141
+
facets={thirdLine.facets}
142
142
+
plaintext={thirdLine.plaintext}
131
143
index={[]}
132
144
preview
133
145
/>