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
fix: tag suggestions positioning (#2151)
Maciej Kasprzyk735cfda7683a
diff --git a/web/src/components/MemoEditor/Editor/TagSuggestions.tsx b/web/src/components/MemoEditor/Editor/TagSuggestions.tsxindex 434c8db28..d059e4f95 100644--- a/web/src/components/MemoEditor/Editor/TagSuggestions.tsx+++ b/web/src/components/MemoEditor/Editor/TagSuggestions.tsx@@ -94,8 +94,8 @@ const TagSuggestions = ({ editorRef, editorActions }: Props) => {if (!isVisibleRef.current || !position) return null;return (<div- className="z-2 p-1 absolute max-w-[12rem] rounded font-mono shadow bg-zinc-200 dark:bg-zinc-600"- style={{ left: position.left - 6, top: position.top + position.height + 2 }}+ className="tag-suggestions z-20 p-1 absolute max-w-[12rem] rounded font-mono shadow bg-zinc-200 dark:bg-zinc-600"+ style={{ left: position.left, top: position.top + position.height }}>{suggestionsRef.current.map((tag, i) => (<divdiff --git a/web/src/less/memo-editor.less b/web/src/less/memo-editor.lessindex 95fc9945a..c51d93b5c 100644--- a/web/src/less/memo-editor.less+++ b/web/src/less/memo-editor.less@@ -12,6 +12,11 @@}}+ .tag-suggestions {+ margin-left: 6px;+ margin-top: 18px;+ }+.tag-action > .tag-list {@apply bottom-7;top: unset !important;@@ -22,6 +27,11 @@}}+ .tag-suggestions {+ margin-left: -10px;+ margin-top: 2px;+ }+> .memo-editor {@apply mt-4 flex flex-col justify-start items-start relative w-full h-auto bg-inherit dark:text-gray-200;}