Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix sub toolbar not getting aligned correctly

Abdullah Atta0c8c8b604019
diff --git a/packages/editor/src/toolbar/toolbar.tsx b/packages/editor/src/toolbar/toolbar.tsx
index 8275b8275..6167904f0 100644
--- a/packages/editor/src/toolbar/toolbar.tsx
+++ b/packages/editor/src/toolbar/toolbar.tsx
@@ -50,6 +50,7 @@ export function Toolbar(props: ToolbarProps) {
defaultFontFamily,
defaultFontSize,
sx,
+ className = "",
...flexProps
} = props;
const isMobile = useIsMobile();
@@ -85,7 +86,7 @@ export function Toolbar(props: ToolbarProps) {
return (
<>
<Flex
- className="editor-toolbar"
+ className={["editor-toolbar", className].join(" ")}
sx={{
...sx,
flexWrap: isMobile ? "nowrap" : "wrap",