Merge pull request #1114 from tryallthethings/pdf-template-fix

Fix for links in PDFs, template fix
This commit is contained in:
Amruth Pillai
2022-12-02 13:41:37 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ export const MastheadSidebar: React.FC = () => {
icon={getProfileIcon(network)}
link={url && addHttp(url)}
className="!gap-2 text-xs"
textClassName="invert"
textClassName={clsx({ invert: contrast === 'light' })}
>
{username}
</DataDisplay>

View File

@ -15,7 +15,7 @@ const DataDisplay: React.FC<React.PropsWithChildren<Props>> = ({ icon, link, cla
return (
<div className={clsx('inline-flex items-center gap-1', className)}>
{icon}
<a href={link} target="_blank" rel="noreferrer" className={textClassName}>
<a href={link} target="_blank" rel="noreferrer" className="{textClassName}">
{children}
</a>
</div>