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: minor ui fixes
Abdullah Atta123f1a26587c
diff --git a/apps/web/src/components/editor/table-of-contents.tsx b/apps/web/src/components/editor/table-of-contents.tsxindex 18efd9bb1..992e9c122 100644--- a/apps/web/src/components/editor/table-of-contents.tsx+++ b/apps/web/src/components/editor/table-of-contents.tsx@@ -156,6 +156,7 @@ function TableOfContents(props: TableOfContentsProps) {textAlign: "left",paddingLeft: `${t.level * 5}px`,py: 1,+ px: 1,borderLeft: "5px solid transparent",borderColor: active.includes(t.id)? "accent-selected"diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsxindex dea3f7cf3..1761cc325 100644--- a/apps/web/src/components/properties/index.tsx+++ b/apps/web/src/components/properties/index.tsx@@ -180,7 +180,7 @@ function EditorProperties(props: EditorPropertiesProps) {<Flexkey={item.key}py={2}- px={2}+ px={1}sx={{borderBottom: "1px solid var(--separator)",alignItems: "center",@@ -238,7 +238,7 @@ function InternalLinks({ noteId }: { noteId: string }) {justifyContent: "stretch",borderRadius: "default",overflow: "hidden",- mx: 2,+ mx: 1,mb: 1}}>@@ -265,23 +265,30 @@ function InternalLinks({ noteId }: { noteId: string }) {))}</Flex>- {result.status === "fulfilled" && (- <VirtualizedList- mode="dynamic"- estimatedSize={25}- getItemKey={(index) => result.value.key(index)}- items={result.value.placeholders}- context={{- items: result.value,- tabIndex,- noteId,- isExpanded: (id) => expandedId === id,- toggleExpand: (id) =>- setExpandedId((s) => (s === id ? undefined : id))- }}- renderItem={InternalLinkItem}- />- )}+ {result.status === "fulfilled" &&+ (result.value.length === 0 ? (+ <Text variant="body" mx={1}>+ {tabIndex === InternalLinksTabs.LINKED_NOTES+ ? "This note does not link to other notes."+ : "This note is not referenced in other notes."}+ </Text>+ ) : (+ <VirtualizedList+ mode="dynamic"+ estimatedSize={25}+ getItemKey={(index) => result.value.key(index)}+ items={result.value.placeholders}+ context={{+ items: result.value,+ tabIndex,+ noteId,+ isExpanded: (id) => expandedId === id,+ toggleExpand: (id) =>+ setExpandedId((s) => (s === id ? undefined : id))+ }}+ renderItem={InternalLinkItem}+ />+ ))}</Flex>);}@@ -524,7 +531,7 @@ function Colors({ noteId, color }: { noteId: string; color?: string }) {return (<Flexpy={2}- px={2}+ px={1}sx={{cursor: "pointer",justifyContent: "start"diff --git a/apps/web/src/components/properties/toggle.tsx b/apps/web/src/components/properties/toggle.tsxindex 96e1b2dc7..97abfdeba 100644--- a/apps/web/src/components/properties/toggle.tsx+++ b/apps/web/src/components/properties/toggle.tsx@@ -33,7 +33,7 @@ function Toggle(props: ToggleProps) {return (<Flexpy={2}- px={2}+ px={1}sx={{borderBottom: "1px solid var(--separator)",cursor: "pointer",diff --git a/apps/web/src/components/session-item/index.tsx b/apps/web/src/components/session-item/index.tsxindex d2c5bdd7d..3290393e8 100644--- a/apps/web/src/components/session-item/index.tsx+++ b/apps/web/src/components/session-item/index.tsx@@ -37,7 +37,7 @@ export function SessionItem(props: SessionItemProps) {key={session.id}data-test-id={`session-item`}py={1}- px={2}+ px={1}sx={{cursor: "pointer",bg: "transparent",