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: tweak memo content renderer
Stevene268a1fe9c62
diff --git a/web/src/components/MemoContent/index.tsx b/web/src/components/MemoContent/index.tsxindex 971c440bd..b6989775e 100644--- a/web/src/components/MemoContent/index.tsx+++ b/web/src/components/MemoContent/index.tsx@@ -55,10 +55,11 @@ const MemoContent = (props: MemoContentProps) => {return <input {...inputProps} />;}) as React.ComponentType<React.ComponentProps<"input">>,span: ((spanProps: React.ComponentProps<"span"> & { node?: Element }) => {- if (spanProps.node && isTagNode(spanProps.node)) {+ const { node, ...rest } = spanProps;+ if (node && isTagNode(node)) {return <Tag {...spanProps} />;}- return <span {...spanProps} />;+ return <span {...rest} />;}) as React.ComponentType<React.ComponentProps<"span">>,pre: CodeBlock,a: ({ href, children, ...aProps }) => (diff --git a/web/src/components/MemoView/components/metadata/AttachmentCard.tsx b/web/src/components/MemoView/components/metadata/AttachmentCard.tsxindex 1fae54fd3..ce0efe758 100644--- a/web/src/components/MemoView/components/metadata/AttachmentCard.tsx+++ b/web/src/components/MemoView/components/metadata/AttachmentCard.tsx@@ -11,7 +11,6 @@ interface AttachmentCardProps {const AttachmentCard = ({ attachment, onClick, className }: AttachmentCardProps) => {const attachmentType = getAttachmentType(attachment);const sourceUrl = getAttachmentUrl(attachment);- const colorspace = getColorspace(attachment.type);if (attachmentType === "image/*") {return (@@ -21,7 +20,6 @@ const AttachmentCard = ({ attachment, onClick, className }: AttachmentCardProps)className={cn("w-full h-full object-cover rounded-lg cursor-pointer", className)}onClick={onClick}loading="lazy"- {...(colorspace && { colorSpace: colorspace as unknown as string })}/>);}@@ -33,7 +31,6 @@ const AttachmentCard = ({ attachment, onClick, className }: AttachmentCardProps)className={cn("w-full h-full object-cover rounded-lg", className)}controlspreload="metadata"- {...(colorspace && { colorSpace: colorspace as unknown as string })}/>);}