Fixed icon preview in metadata card (#19650)

Closes issue:
https://linear.app/tryghost/issue/DES-7/admin-x-metadata-page-shows-icon-incorrectly

Set the background image to contain.
This commit is contained in:
Daniël van der Winden 2024-02-05 13:38:37 +01:00 committed by GitHub
parent aba6c4b5e8
commit a7f6713614
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,8 @@ const SearchEnginePreview: React.FC<SearchEnginePreviewProps> = ({
</div>
<div className='mt-4 flex items-center gap-2 border-t border-grey-200 pt-4 dark:border-grey-900'>
<div className='flex h-7 w-7 items-center justify-center rounded-full bg-grey-200 dark:bg-grey-700' style={{
backgroundImage: icon ? `url(${icon})` : 'none'
backgroundImage: icon ? `url(${icon})` : 'none',
backgroundSize: 'contain'
}}>
</div>
<div className='flex flex-col text-sm'>