a tool for shared writing and social publishing

adjusting a loooot of spacing here and there

Changed files
+17 -11
app
components
+7 -8
app/lish/[did]/[publication]/[rkey]/PostContent.tsx
··· 123 123 if (!alignment && PubLeafletBlocksImage.isMain(b.block)) 124 124 alignment = "text-center justify-center"; 125 125 126 - // non text blocks, they need this padding, pt-3 sm:pt-4, which is applied in each case 127 126 let className = ` 128 127 postBlockWrapper 129 128 min-h-7 130 - pt-1 pb-2 131 - ${isList && "isListItem pb-0! "} 129 + mt-1 mb-2 130 + ${isList && "isListItem mb-0! "} 132 131 ${alignment} 133 132 `; 134 133 ··· 144 143 parentPageId={pageId} 145 144 did={did} 146 145 bskyPostData={bskyPostData} 146 + className={className} 147 147 /> 148 148 ); 149 149 } ··· 151 151 let uri = b.block.postRef.uri; 152 152 let post = bskyPostData.find((p) => p.uri === uri); 153 153 if (!post) return <div>no prefetched post rip</div>; 154 - return <PubBlueskyPostBlock post={post} />; 154 + return <PubBlueskyPostBlock post={post} className={className} />; 155 155 } 156 156 case PubLeafletBlocksIframe.isMain(b.block): { 157 157 return ( ··· 200 200 href={b.block.src} 201 201 target="_blank" 202 202 className={` 203 - my-2 203 + ${className} 204 204 externalLinkBlock flex relative group/linkBlock 205 205 h-[104px] w-full bg-bg-page overflow-hidden text-primary hover:no-underline no-underline 206 206 hover:border-accent-contrast shadow-sm ··· 252 252 alt={b.block.alt} 253 253 height={b.block.aspectRatio?.height} 254 254 width={b.block.aspectRatio?.width} 255 - className={`pt-3! sm:pt-4! rounded-md ${className}`} 255 + className={`rounded-lg border border-transparent ${className}`} 256 256 src={blobRefToSrc(b.block.image.ref, did)} 257 257 /> 258 258 {b.block.alt && ( ··· 273 273 } 274 274 case PubLeafletBlocksBlockquote.isMain(b.block): { 275 275 return ( 276 - // highly unfortunate hack so that the border-l on blockquote is the height of just the text rather than the height of the block, which includes padding. 276 + // all this margin stuff is a highly unfortunate hack so that the border-l on blockquote is the height of just the text rather than the height of the block, which includes padding. 277 277 <blockquote 278 278 className={` blockquote py-0! mb-2! last:mb-3! sm:last:mb-4! first:mt-2! sm:first:pt-3 ${className} ${PubLeafletBlocksBlockquote.isMain(previousBlock?.block) ? "-mt-2!" : "mt-1!"}`} 279 279 {...blockProps} ··· 377 377 ))} 378 378 </ul> 379 379 ) : null; 380 - 381 380 return ( 382 381 <li className={`pb-0! flex flex-row gap-2`}> 383 382 <div
+1 -1
app/lish/[did]/[publication]/[rkey]/PostPages.tsx
··· 174 174 } 175 175 /> 176 176 <hr className="border-border-light mb-4 mt-4 sm:mx-4 mx-3" /> 177 - <div className="pb-6 sm:px-4 px-3"> 177 + <div className="sm:px-4 px-3"> 178 178 {identity && 179 179 identity.atp_did === 180 180 document.documents_in_publications[0]?.publications
+6 -1
app/lish/[did]/[publication]/[rkey]/PublishBskyPostBlock.tsx
··· 16 16 } from "components/Blocks/BlueskyPostBlock/BlueskyEmbed"; 17 17 import { BlueskyRichText } from "components/Blocks/BlueskyPostBlock/BlueskyRichText"; 18 18 19 - export const PubBlueskyPostBlock = ({ post }: { post: PostView }) => { 19 + export const PubBlueskyPostBlock = (props: { 20 + post: PostView; 21 + className: string; 22 + }) => { 23 + let post = props.post; 20 24 switch (true) { 21 25 case AppBskyFeedDefs.isBlockedPost(post) || 22 26 AppBskyFeedDefs.isBlockedAuthor(post) || ··· 46 50 return ( 47 51 <div 48 52 className={` 53 + ${props.className} 49 54 block-border 50 55 mb-2 51 56 flex flex-col gap-2 relative w-full overflow-hidden group/blueskyPostBlock sm:p-3 p-2 text-sm text-secondary bg-bg-page
+1
app/lish/[did]/[publication]/[rkey]/PublishedPageBlock.tsx
··· 46 46 block-border 47 47 mt-1 mb-2 48 48 ${isOpen && "!border-tertiary"} 49 + ${props.className} 49 50 `} 50 51 onClick={(e) => { 51 52 if (e.isDefaultPrevented()) return;
+1 -1
components/DesktopFooter.tsx
··· 16 16 return ( 17 17 <Media 18 18 mobile={false} 19 - className="absolute bottom-4 w-full z-10 pointer-events-none" 19 + className="absolute bottom-[40px] w-full z-10 pointer-events-none" 20 20 > 21 21 {focusedEntity && 22 22 focusedEntity.entityType === "block" &&
+1
components/Pages/Page.tsx
··· 133 133 `} 134 134 > 135 135 {props.children} 136 + <div className="h-4 sm:h-6 w-full" /> 136 137 </div> 137 138 </div> 138 139 {props.pageOptions}