diff --git a/src/recipe/PhotoRecipe.tsx b/src/recipe/PhotoRecipe.tsx index 7ad9cf2a..9ca766f1 100644 --- a/src/recipe/PhotoRecipe.tsx +++ b/src/recipe/PhotoRecipe.tsx @@ -34,7 +34,9 @@ export default function PhotoRecipe({ icon={} className={className} diff --git a/src/recipe/PhotoRecipeOverlay.tsx b/src/recipe/PhotoRecipeOverlay.tsx index eb36f435..388bd37a 100644 --- a/src/recipe/PhotoRecipeOverlay.tsx +++ b/src/recipe/PhotoRecipeOverlay.tsx @@ -12,16 +12,20 @@ import { formatNoiseReduction, formatRecipe, formatWhiteBalance, + generateRecipeText, RecipeProps, } from '.'; +import { labelForFilmSimulation } from '@/platforms/fujifilm/simulation'; +import { TbChecklist } from 'react-icons/tb'; +import CopyButton from '@/components/CopyButton'; +import { pathForRecipe } from '@/app/paths'; +import LinkWithStatus from '@/components/LinkWithStatus'; export default function PhotoRecipeOverlay({ ref, title, recipe, simulation, - iso, - exposure, onClose, }: RecipeProps & { ref?: RefObject @@ -68,6 +72,21 @@ export default function PhotoRecipeOverlay({ ); + const renderRecipeTitle = +
+ +
+ {title ? formatRecipe(title) : 'Recipe'} +
+
; + return ( -
-
-
- {title ? formatRecipe(title) : 'Recipe'} -
- +
+
+ {title + ? + {renderRecipeTitle} + + : renderRecipeTitle}
+ } onClick={onClose} @@ -108,9 +139,26 @@ export default function PhotoRecipeOverlay({
{/* ROW */} - {renderDataSquare(`DR${dynamicRange.development}`)} - {renderDataSquare(iso)} - {renderDataSquare(exposure ?? '0ev')} +
+ {renderDataSquare( +
+ {labelForFilmSimulation(simulation).medium.toLocaleUpperCase()} + +
, + undefined, + 'py-0.5', + )} +
+ {renderDataSquare( + `DR${dynamicRange.development}`, + undefined, + 'col-span-4 py-0.5', + )} {/* ROW */} {renderDataSquare( whiteBalanceTypeFormatted.toUpperCase(),