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: note height calculation is incorrect
thecodrr68ff36ddd3ee
diff --git a/apps/web/src/common/height-calculator.js b/apps/web/src/common/height-calculator.jsindex bcec503bc..ea852cadf 100644--- a/apps/web/src/common/height-calculator.js+++ b/apps/web/src/common/height-calculator.js@@ -12,8 +12,8 @@ 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;- if (headline?.length > 40) height += SINGLE_LINE_HEIGHT;- if (notebook) height += SINGLE_LINE_HEIGHT;+ if (headline?.length > 50) height += SINGLE_LINE_HEIGHT;+ if (notebook) height += SINGLE_LINE_HEIGHT / 2;return height * DEFAULT_FONT_SIZE;}