Scheduling infrastructure for absolutely everyone.
fixed spacing between bold and italic buttons in description of new event type (#24542)
spandevc81b8145b5d8
diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsxindex ca62a447bf4..24cb75e3033 100644--- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx+++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx@@ -360,7 +360,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {}});}- // eslint-disable-next-line react-hooks/exhaustive-deps}, [props.updateTemplate]);useEffect(() => {@@ -375,7 +374,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {$getRoot().select();try {$insertNodes(nodes);- } catch (e: unknown) {+ } catch {// resolves: "topLevelElement is root node at RangeSelection.insertNodes"// @see https://stackoverflow.com/questions/73094258/setting-editor-from-htmlconst paragraphNode = $createParagraphNode();@@ -397,7 +396,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {});});}- // eslint-disable-next-line react-hooks/exhaustive-deps}, []);useEffect(() => {@@ -467,7 +465,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {</>)}- <>+ <div className="flex gap-1">{!props.excludedToolbarItems?.includes("bold") && (<Buttonaria-label="Bold"@@ -508,7 +506,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {{isLink && createPortal(<FloatingLinkEditor editor={editor} />, document.body)}{" "}</>)}- </>+ </div>{props.variables && (<div className={`${props.addVariableButtonTop ? "-mt-10" : ""} ml-auto`}><AddVariablesDropdown