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 toc headings alignment (#9143)
01zulfie8690e34198b
diff --git a/apps/web/src/components/editor/table-of-contents.tsx b/apps/web/src/components/editor/table-of-contents.tsxindex 6895987f0..d1ceaae2a 100644--- a/apps/web/src/components/editor/table-of-contents.tsx+++ b/apps/web/src/components/editor/table-of-contents.tsx@@ -201,7 +201,14 @@ function TableOfContents(props: TableOfContentsProps) {{item.hasChildren ? (<Buttonvariant="secondary"- sx={{ bg: "transparent", p: 0, borderRadius: 100 }}+ sx={{+ bg: "transparent",+ p: 0,+ borderRadius: 100,+ width: 14,+ height: 14,+ flexShrink: 0+ }}onClick={(e) => {e.stopPropagation();expanded ? collapse() : expand();@@ -214,7 +221,17 @@ function TableOfContents(props: TableOfContentsProps) {)}</Button>) : (- <Circle size={5} color="icon-secondary" />+ <Flex+ sx={{+ width: 14,+ height: 14,+ alignItems: "center",+ justifyContent: "center",+ flexShrink: 0+ }}+ >+ <Circle size={5} color="icon-secondary" />+ </Flex>)}{item.data.title}</Button>