chore: fix toolbar image option color
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
export function GetRemoteImageBlock(onSelect: () => void) {
|
||||
return { name: 'Image from URL', iconName: 'file-image', keywords: ['image', 'url'], onSelect }
|
||||
return {
|
||||
name: 'Image from URL',
|
||||
iconName: 'file-image',
|
||||
iconClassName: '!text-current',
|
||||
keywords: ['image', 'url'],
|
||||
onSelect,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,13 @@ const MobileToolbarPlugin = () => {
|
||||
}, [editor])
|
||||
|
||||
const items = useMemo(
|
||||
() => [
|
||||
(): {
|
||||
name: string
|
||||
iconName: string
|
||||
iconClassName?: string
|
||||
keywords?: string[]
|
||||
onSelect: () => void
|
||||
}[] => [
|
||||
{
|
||||
name: 'Bold',
|
||||
iconName: 'bold',
|
||||
@@ -222,7 +228,7 @@ const MobileToolbarPlugin = () => {
|
||||
onClick={item.onSelect}
|
||||
key={item.name}
|
||||
>
|
||||
<Icon type={item.iconName} size="medium" />
|
||||
<Icon type={item.iconName} size="medium" className={item.iconClassName} />
|
||||
</button>
|
||||
)
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user