From 7e1c0b822b7216cc8e489fa334026b60b0d7a007 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 2 Jul 2026 15:58:59 -0400 Subject: [PATCH] feat: inline markdown formatting toolbar FormatToolbar component: B I S ` || buttons that wrap selected text with markdown syntax. Added to both channel and DM input areas. Keyboard shortcuts: Ctrl+B bold, Ctrl+I italic already work via browser defaults on the rendered markdown. --- web/src/components/ChatArea.tsx | 2 ++ web/src/components/DMChat.tsx | 4 +++ web/src/components/FormatToolbar.tsx | 48 ++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 web/src/components/FormatToolbar.tsx diff --git a/web/src/components/ChatArea.tsx b/web/src/components/ChatArea.tsx index acceae5..64151bf 100644 --- a/web/src/components/ChatArea.tsx +++ b/web/src/components/ChatArea.tsx @@ -21,6 +21,7 @@ import { PinnedMessages } from "./PinnedMessages.tsx"; import { FeatureRequestsPanel } from "./FeatureRequestsPanel.tsx"; import { ReactionBar } from "./ReactionBar.tsx"; import { EmojiPicker } from "./EmojiPicker.tsx"; +import { FormatToolbar } from "./FormatToolbar.tsx"; import { ReplyBar } from "./ReplyBar.tsx"; import { useLayoutStore } from "../stores/layout.ts"; import { ForumView } from "./ForumView.tsx"; @@ -870,6 +871,7 @@ export function ChatArea() { /> )} + + ))} + + ); +}