a tool for shared writing and social publishing
0
fork

Configure Feed

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

make focusblock resilient to blockquote padding

+2 -3
+2 -3
src/utils/focusBlock.ts
··· 81 81 break; 82 82 } 83 83 case "top": { 84 - console.log(position.left); 85 84 pos = nextBlock.view.posAtCoords({ 86 85 top: nextBlockViewClientRect.top + 12, 87 - left: position.left, 86 + left: Math.max(position.left, nextBlockViewClientRect.left), 88 87 }); 89 88 console.log(pos); 90 89 break; ··· 92 91 case "bottom": { 93 92 pos = nextBlock.view.posAtCoords({ 94 93 top: nextBlockViewClientRect.bottom - 12, 95 - left: position.left, 94 + left: Math.max(position.left, nextBlockViewClientRect.left), 96 95 }); 97 96 break; 98 97 }