fixed spacing between bold and italic buttons in description of new event type (#24542)

This commit is contained in:
spandev
2025-10-18 18:20:57 +00:00
committed by GitHub
parent fa35cc5210
commit c81b8145b5
@@ -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-html
const 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") && (
<Button
aria-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