From 2d4361d5fe43743a3241fd6ca045e2fc37ca77a0 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 22 Oct 2025 08:50:09 +0800 Subject: [PATCH] chore: update memo content formatting and enhance link styling --- store/seed/sqlite/01__dump.sql | 2 +- web/src/components/MemoContent/Image.tsx | 2 +- web/src/components/MemoContent/Link.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/store/seed/sqlite/01__dump.sql b/store/seed/sqlite/01__dump.sql index 96f58b1dd..7cc558778 100644 --- a/store/seed/sqlite/01__dump.sql +++ b/store/seed/sqlite/01__dump.sql @@ -3,7 +3,7 @@ INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(1,'hjnAKZ INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(2,'a2KkqjW4hyQMUeSRRehRQ5',1,'Ok, I''m able to upload **some images**. #features','PUBLIC','{"tags":["features"]}'); INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(3,'8x7bm252MAJfGBqW5dHHPE',1,replace('And here are my **tasks**. #todo\n- [x] deploy memos for myself;\n- [ ] share to my friends;\n- [ ] sounds good to me!','\n',char(10)),'PUBLIC','{"tags":["todo"],"property":{"hasTaskList":true,"hasIncompleteTasks":true}}'); INSERT INTO memo (id,uid,creator_id,content,visibility,payload) VALUES(4,'kBfJKAyFvE52kQ9dmSZMfE',1,'Wow, it can be **referenced** too! REALLY GREAT!!! #features','PUBLIC','{"tags":["features"]}'); -INSERT INTO memo (id,uid,creator_id,content,visibility,pinned,payload) VALUES(5,'RF9XnAcWpcBzKttK83zQtf',1,replace('#sponsor **[Warp](https://go.warp.dev/memos)**: A modern terminal reimagined to work with AI, helping developers build faster and more efficiently.\n![Warp](https://raw.githubusercontent.com/warpdotdev/brand-assets/main/Github/Sponsor/Warp-Github-LG-02.png)','\n',char(10)),'PUBLIC',1,'{"tags":["sponsor"],"property":{"hasLink":true}}'); +INSERT INTO memo (id,uid,creator_id,content,visibility,pinned,payload) VALUES(5,'RF9XnAcWpcBzKttK83zQtf',1,replace('#sponsor **[Warp](https://go.warp.dev/memos)**: A modern terminal reimagined to work with AI, helping developers build faster and more efficiently.\n[![Warp](https://raw.githubusercontent.com/warpdotdev/brand-assets/main/Github/Sponsor/Warp-Github-LG-02.png)](https://go.warp.dev/memos)','\n',char(10)),'PUBLIC',1,'{"tags":["sponsor"],"property":{"hasLink":true}}'); INSERT INTO memo_relation VALUES(4,1,'REFERENCE'); INSERT INTO reaction VALUES(1,1722097094,1,'memos/4','👍'); INSERT INTO reaction VALUES(2,1722097100,1,'memos/4','🔥'); diff --git a/web/src/components/MemoContent/Image.tsx b/web/src/components/MemoContent/Image.tsx index 76ae0cdd4..755b9f315 100644 --- a/web/src/components/MemoContent/Image.tsx +++ b/web/src/components/MemoContent/Image.tsx @@ -4,7 +4,7 @@ interface Props { } const Image: React.FC = ({ altText, url }: Props) => { - return {altText}; + return {altText}; }; export default Image; diff --git a/web/src/components/MemoContent/Link.tsx b/web/src/components/MemoContent/Link.tsx index 18486998e..994d66dee 100644 --- a/web/src/components/MemoContent/Link.tsx +++ b/web/src/components/MemoContent/Link.tsx @@ -47,7 +47,7 @@ const Link: React.FC = ({ content, url }: Props) => {