File tree Expand file tree Collapse file tree
packages/ui/components/editor/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
451451
452452 if ( ! props . editable ) return null ;
453453 return (
454- < div className = "toolbar flex" ref = { toolbarRef } >
454+ < div className = "toolbar flex gap-1 " ref = { toolbarRef } >
455455 < >
456456 { ! props . excludedToolbarItems ?. includes ( "blockType" ) && (
457457 < >
@@ -465,16 +465,18 @@ export default function ToolbarPlugin(props: TextEditorProps) {
465465 < Icon name = "chevron-down" className = "text-default ml-2 h-4 w-4" />
466466 </ >
467467 </ DropdownMenuTrigger >
468- < DropdownMenuContent align = "start" >
468+ < DropdownMenuContent align = "start" className = "flex flex-col gap-1" >
469469 { Object . keys ( blockTypeToBlockName ) . map ( ( key ) => {
470470 return (
471- < DropdownMenuItem key = { key } className = "outline-none hover:ring-0 focus:ring-0" >
471+ < DropdownMenuItem
472+ key = { key }
473+ className = "outline-none hover:ring-0 focus:ring-0 rounded-md" >
472474 < Button
473475 color = "minimal"
474476 type = "button"
475477 onClick = { ( ) => format ( key ) }
476478 className = { classNames (
477- "w-full rounded-none focus:ring-0" ,
479+ "w-full rounded-md focus:ring-0" ,
478480 blockType === key ? "bg-subtle w-full" : ""
479481 ) } >
480482 < >
You can’t perform that action at this time.
0 commit comments