A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix gap between title and editor on entering focus mode
Abdullah Attae06320108b22
diff --git a/apps/web/src/components/editor/title-box.tsx b/apps/web/src/components/editor/title-box.tsxindex 873506287..fe909aaef 100644--- a/apps/web/src/components/editor/title-box.tsx+++ b/apps/web/src/components/editor/title-box.tsx@@ -152,8 +152,12 @@ export default React.memo(TitleBox, (prevProps, nextProps) => {});function resizeTextarea(input: HTMLTextAreaElement) {- input.style.height = "auto";- input.style.height = input.scrollHeight + "px";+ requestAnimationFrame(() => {+ input.style.height = "auto";+ requestAnimationFrame(() => {+ input.style.height = input.scrollHeight + "px";+ });+ });}function onTitleChange(