diff --git a/web/src/components/MemoEditor.tsx b/web/src/components/MemoEditor.tsx index b9f74797..e5fd5cf7 100644 --- a/web/src/components/MemoEditor.tsx +++ b/web/src/components/MemoEditor.tsx @@ -254,7 +254,7 @@ const MemoEditor: React.FC = () => { const handleTagSeletorClick = useCallback((event: React.MouseEvent) => { if (tagSeletorRef.current !== event.target && tagSeletorRef.current?.contains(event.target as Node)) { - editorRef.current?.insertText((event.target as HTMLElement).textContent ?? ""); + editorRef.current?.insertText((event.target as HTMLElement).textContent + " " ?? ""); toggleTagSeletor(false); } }, []); diff --git a/web/src/components/TagList.tsx b/web/src/components/TagList.tsx index d2501ae5..4fc2818c 100644 --- a/web/src/components/TagList.tsx +++ b/web/src/components/TagList.tsx @@ -77,7 +77,7 @@ const TagList: React.FC = () => { ))}

- Enter # Tag to create a tag + Enter #Tag to create a tag

diff --git a/web/src/components/UserBanner.tsx b/web/src/components/UserBanner.tsx index 95b18d10..2fb5d5b3 100644 --- a/web/src/components/UserBanner.tsx +++ b/web/src/components/UserBanner.tsx @@ -28,9 +28,10 @@ const UserBanner: React.FC = () => { return (
-

- {username} -

+
+ {username} + {user?.role === "OWNER" ? MOD : null} +
diff --git a/web/src/less/user-banner.less b/web/src/less/user-banner.less index 383c01d6..c0ce978e 100644 --- a/web/src/less/user-banner.less +++ b/web/src/less/user-banner.less @@ -4,8 +4,16 @@ .flex(row, space-between, center); @apply w-full h-auto px-6 flex-nowrap mb-1; - > .username-text { - @apply font-bold text-lg pr-2 text-slate-800 cursor-pointer shrink truncate; + > .username-container { + @apply shrink flex flex-row justify-start items-center flex-nowrap truncate; + + > .username-text { + @apply font-bold text-lg pr-1 text-slate-800 cursor-pointer shrink truncate; + } + + > .tag { + @apply text-xs px-1 bg-blue-500 rounded text-white; + } } > .action-btn {