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
fix: adjust height of empty note with only title
thecodrr6a34d3ae7adf
diff --git a/apps/web/src/common/height-calculator.js b/apps/web/src/common/height-calculator.jsindex 9aedf8c99..89ed5bec4 100644--- a/apps/web/src/common/height-calculator.js+++ b/apps/web/src/common/height-calculator.js@@ -12,6 +12,7 @@ function getNoteHeight(item) {let height = SINGLE_LINE_HEIGHT * 3;//if (title.length > 35) height += SINGLE_LINE_HEIGHT;if (headline?.length > 0) height += SINGLE_LINE_HEIGHT * 2;+ else height += SINGLE_LINE_HEIGHT;if (notebook) height += SINGLE_LINE_HEIGHT / 2;return height * DEFAULT_FONT_SIZE;