diff --git a/src/photo/PhotoLarge.tsx b/src/photo/PhotoLarge.tsx
index e0ca83eb..8ee7f82f 100644
--- a/src/photo/PhotoLarge.tsx
+++ b/src/photo/PhotoLarge.tsx
@@ -149,22 +149,21 @@ export default function PhotoLarge({
hasTitleContent ||
hasMetaContent;
- const renderPhotoLink = () =>
+ const renderPhotoLink =
;
- const matteContentWidthForAspectRatio = () => {
- // Restrict width for landscape photos
- // (portrait photos are always height restricted)
- if (photo.aspectRatio > 3 / 2 + 0.1) {
- return 'w-[90%]';
- } else if (photo.aspectRatio >= 1) {
- return 'w-[80%]';
- }
- };
+ // Restrict width for landscape photos
+ // (portrait photos are always height restricted)
+ const matteContentWidthForAspectRatio =
+ photo.aspectRatio > 3 / 2 + 0.1
+ ? 'w-[90%]'
+ : photo.aspectRatio >= 1
+ ? 'w-[80%]'
+ : undefined;
const largePhotoContent =
{hasTitle && (showTitleAsH1
- ?
{renderPhotoLink()}
- : renderPhotoLink())}
+ ?
{renderPhotoLink}
+ : renderPhotoLink)}