Skip to content

Commit 7513964

Browse files
authored
Merge pull request #280 from performant-software/RB-image-citation-field
Adding underline to image citation links
2 parents 3f24192 + 100d0c8 commit 7513964

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/apps/pages/sections/Images.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { items, title } = Astro.props;
2525
>
2626
<ImageWithCitation
2727
alt={item.image_alt}
28-
classNames={{ root: 'w-full h-full', image: 'w-full h-full object-cover', citation: 'text-xs text-gray-400' }}
28+
classNames={{ root: 'w-full h-full', image: 'w-full h-full object-cover', citation: `text-xs text-gray-400${item.citationLink ? ' underline' : ''}` }}
2929
src={item.image}
3030
citation={item.citation}
3131
citationLink={item.citation_link}

src/apps/pages/sections/TextImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const TextImage = (props: Props) => {
176176
>
177177
<ImageWithCitation
178178
alt={props.imageAlt}
179-
classNames={{ image: 'w-full h-full object-cover', root: 'w-full h-full', citation: 'text-xs text-gray-400' }}
179+
classNames={{ image: 'w-full h-full object-cover', root: 'w-full h-full', citation: `text-xs text-gray-400${props.citationLink ? ' underline' : ''}` }}
180180
src={props.image}
181181
citation={props.citation}
182182
citationLink={props.citationLink}

0 commit comments

Comments
 (0)