Center the catalog header

This commit is contained in:
Bill 2022-08-18 01:48:27 -04:00
parent 981e0d65f6
commit 43f3f1895e

View File

@ -17,7 +17,7 @@ export const CatalogHeaderView: FC<CatalogHeaderViewProps> = props =>
setDisplayImageUrl(imageUrl ?? GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder')); setDisplayImageUrl(imageUrl ?? GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder'));
}, [ imageUrl ]); }, [ imageUrl ]);
return <Flex center shrink className="nitro-catalog-header"> return <Flex center fullWidth className="nitro-catalog-header">
<img src={ displayImageUrl } onError={ ({ currentTarget }) => <img src={ displayImageUrl } onError={ ({ currentTarget }) =>
{ {
currentTarget.src = GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder'); currentTarget.src = GetConfiguration<string>('catalog.asset.image.url').replace('%name%', 'catalog_header_roombuilder');