mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 15:09:31 +00:00
Merge pull request #959 from hongzzz/fix-notion-icon
fix: notion icon support base64
This commit is contained in:
@@ -8,10 +8,10 @@ const NotionIcon = ({ icon }) => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
if (icon.startsWith('http')) {
|
||||
if (icon.startsWith('http') || icon.startsWith('data:')) {
|
||||
// return <Image src={icon} width={30} height={30}/>
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
return <img src={icon} className='w-8 float-left mr-1'/>
|
||||
return <img src={icon} className='w-8 inline mr-1'/>
|
||||
}
|
||||
|
||||
return <span className='mr-1'>{icon}</span>
|
||||
|
||||
Reference in New Issue
Block a user