diff --git a/src/components/primitives/EntityLink.tsx b/src/components/primitives/EntityLink.tsx index 434987b2..231ed4ec 100644 --- a/src/components/primitives/EntityLink.tsx +++ b/src/components/primitives/EntityLink.tsx @@ -22,6 +22,7 @@ export default function EntityLink({ prefetch, title, hoverEntity, + truncate = true, className, debug, }: { @@ -33,8 +34,9 @@ export default function EntityLink({ prefetch?: boolean title?: string hoverEntity?: ReactNode - debug?: boolean + truncate?: boolean className?: string + debug?: boolean } & EntityLinkExternalProps) { const classForContrast = () => { switch (contrast) { @@ -84,7 +86,11 @@ export default function EntityLink({ > {renderLabel()} - : renderLabel()} + : *]:truncate', + )}> + {renderLabel()} + } {hoverEntity !== undefined && diff --git a/src/photo/PhotoHeader.tsx b/src/photo/PhotoHeader.tsx index 74d1e66e..ae236ae1 100644 --- a/src/photo/PhotoHeader.tsx +++ b/src/photo/PhotoHeader.tsx @@ -120,7 +120,7 @@ export default function PhotoHeader({ // Necessary for title truncation :

{renderContentA()}

}