a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

default images to center align

This matches leaflet styles!

+4 -1
+4 -1
app/lish/[did]/[publication]/[rkey]/PostContent.tsx
··· 40 40 isList?: boolean; 41 41 }) => { 42 42 let b = block; 43 + let alignment = b.alignment; 44 + if (!alignment && PubLeafletBlocksImage.isMain(b.block)) 45 + alignment = "lex:pub.leaflet.pages.linearDocument#textAlignCenter"; 43 46 44 47 // non text blocks, they need this padding, pt-3 sm:pt-4, which is applied in each case 45 48 let className = ` 46 49 postBlockWrapper 47 50 pt-1 48 51 ${isList ? "isListItem pb-0 " : "pb-2 last:pb-3 last:sm:pb-4 first:pt-2 sm:first:pt-3"} 49 - ${b.alignment === "lex:pub.leaflet.pages.linearDocument#textAlignRight" ? "text-right" : b.alignment === "lex:pub.leaflet.pages.linearDocument#textAlignCenter" ? "text-center" : ""} 52 + ${alignment === "lex:pub.leaflet.pages.linearDocument#textAlignRight" ? "text-right" : alignment === "lex:pub.leaflet.pages.linearDocument#textAlignCenter" ? "text-center" : ""} 50 53 `; 51 54 52 55 switch (true) {