Scheduling infrastructure for absolutely everyone.
style: add spacing and rounded corners to toolbar dropdown items (#25829)
Kartik Labhshetwar223c967f81fd
diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsxindex aa08a117b28..2aeca63a7bd 100644--- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx+++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx@@ -451,7 +451,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {if (!props.editable) return null;return (- <div className="toolbar flex" ref={toolbarRef}>+ <div className="toolbar flex gap-1" ref={toolbarRef}><>{!props.excludedToolbarItems?.includes("blockType") && (<>@@ -465,16 +465,18 @@ export default function ToolbarPlugin(props: TextEditorProps) {<Icon name="chevron-down" className="text-default ml-2 h-4 w-4" /></></DropdownMenuTrigger>- <DropdownMenuContent align="start">+ <DropdownMenuContent align="start" className="flex flex-col gap-1">{Object.keys(blockTypeToBlockName).map((key) => {return (- <DropdownMenuItem key={key} className="outline-none hover:ring-0 focus:ring-0">+ <DropdownMenuItem+ key={key}+ className="outline-none hover:ring-0 focus:ring-0 rounded-md"><Buttoncolor="minimal"type="button"onClick={() => format(key)}className={classNames(- "w-full rounded-none focus:ring-0",+ "w-full rounded-md focus:ring-0",blockType === key ? "bg-subtle w-full" : "")}><>