a tool for shared writing and social publishing
0
fork

Configure Feed

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

fixed issue where clicking at top padding of card focused bottom block, it now focuses top block

celine 80f915dd 2811ee70

+4 -4
+2 -2
components/Blocks.tsx
··· 31 31 let lastBlock = blocks[blocks.length - 1]; 32 32 return ( 33 33 <div 34 - className="blocks w-full flex flex-col pt-2 sm:pt-3 outline-none h-fit min-h-full pb-32" 34 + className="blocks w-full flex flex-col outline-none h-fit min-h-full pb-32" 35 35 onClick={async (e) => { 36 36 if (useUIState.getState().selectedBlock.length > 1) return; 37 37 if (e.target === e.currentTarget) { ··· 284 284 className={`${ 285 285 props.type !== "heading" && 286 286 props.type !== "text" && 287 - `border-l-4 first:pt-0 pl-1 sm:pl-2 pr-2 sm:pr-3 pt-1 pb-2 ${selected ? "border-tertiary" : "border-transparent"}` 287 + `border-l-4 first:pt-2 sm:first:pt-3 pl-1 sm:pl-2 pr-2 sm:pr-3 pt-1 pb-2 ${selected ? "border-tertiary" : "border-transparent"}` 288 288 }`} 289 289 id={elementId.block(props.entityID).container} 290 290 >
+2 -2
components/TextBlock/index.tsx
··· 127 127 ? "p-0" 128 128 : `px-2 sm:px-3 ${ 129 129 props.type === "heading" ? "pb-0 " : "pb-2" 130 - } ${props.first ? "pt-0" : "pt-1"}` 130 + } ${props.first ? "pt-2 sm:pt-3" : "pt-1"}` 131 131 }`} 132 132 > 133 133 {nodes.map((node, index) => ( ··· 244 244 border-l-4 outline-none 245 245 resize-none align-top whitespace-pre-wrap bg-transparent ${ 246 246 selected ? " border-tertiary" : "border-transparent" 247 - } ${first ? "pt-0" : "pt-1"} ${props.type === "heading" ? "pb-0" : "pb-2"} ${props.className}`} 247 + } ${first ? "pt-2 sm:pt-3" : "pt-1"} ${props.type === "heading" ? "pb-0" : "pb-2"} ${props.className}`} 248 248 ref={setMount} 249 249 /> 250 250 {editorState.doc.textContent.length === 0 &&