fixed spacing between bold and italic buttons in description of new event type (#24542)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user