Skip to content

Commit c81b814

Browse files
fixed spacing between bold and italic buttons in description of new event type (calcom#24542)
1 parent fa35cc5 commit c81b814

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/ui/components/editor/plugins/ToolbarPlugin.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {
360360
}
361361
});
362362
}
363-
// eslint-disable-next-line react-hooks/exhaustive-deps
364363
}, [props.updateTemplate]);
365364

366365
useEffect(() => {
@@ -375,7 +374,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
375374
$getRoot().select();
376375
try {
377376
$insertNodes(nodes);
378-
} catch (e: unknown) {
377+
} catch {
379378
// resolves: "topLevelElement is root node at RangeSelection.insertNodes"
380379
// @see https://stackoverflow.com/questions/73094258/setting-editor-from-html
381380
const paragraphNode = $createParagraphNode();
@@ -397,7 +396,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {
397396
});
398397
});
399398
}
400-
// eslint-disable-next-line react-hooks/exhaustive-deps
401399
}, []);
402400

403401
useEffect(() => {
@@ -467,7 +465,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
467465
</>
468466
)}
469467

470-
<>
468+
<div className="flex gap-1">
471469
{!props.excludedToolbarItems?.includes("bold") && (
472470
<Button
473471
aria-label="Bold"
@@ -508,7 +506,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
508506
{isLink && createPortal(<FloatingLinkEditor editor={editor} />, document.body)}{" "}
509507
</>
510508
)}
511-
</>
509+
</div>
512510
{props.variables && (
513511
<div className={`${props.addVariableButtonTop ? "-mt-10" : ""} ml-auto`}>
514512
<AddVariablesDropdown

0 commit comments

Comments
 (0)