Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update heading styles
Steven0793f965787e
diff --git a/web/src/components/MemoContentV1/Heading.tsx b/web/src/components/MemoContentV1/Heading.tsxindex c9649c5e4..a23738243 100644--- a/web/src/components/MemoContentV1/Heading.tsx+++ b/web/src/components/MemoContentV1/Heading.tsx@@ -8,8 +8,21 @@ interface Props {const Heading: React.FC<Props> = ({ level, children }: Props) => {const Head = `h${level}` as keyof JSX.IntrinsicElements;+ const className = (() => {+ switch (level) {+ case 1:+ return "text-5xl leading-normal font-bold";+ case 2:+ return "text-3xl leading-normal font-medium";+ case 3:+ return "text-xl leading-normal font-medium";+ case 4:+ return "text-lg font-bold";+ }+ })();+return (- <Head>+ <Head className={className}>{children.map((child, index) => (<Renderer key={`${child.type}-${index}`} node={child} />))}