From 4ce2ffe30c4ea2051842369742256ad3cbdc3d39 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Thu, 5 Mar 2026 16:42:07 +0400 Subject: [PATCH] hotfix: AM Flag --- .../LongevitySubSection.module.scss | 10 ++++++++++ .../LongevitySubSection/LongevitySubSection.tsx | 5 ++++- .../LongevitySubSection/LongevitySubSection.types.ts | 1 + src/layouts/DietLayout/DietLayout.tsx | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss b/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss index bd60ff5..4781bd6 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss @@ -121,6 +121,16 @@ } } } + .foodChoicesContent { + p:first-child { + margin-bottom: 10px; + } + img { + width: 16px; + margin-bottom: -2px; + height: 16px; + } + } } } diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx b/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx index 137be6a..914874a 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx @@ -26,6 +26,7 @@ const LongevitySubSection: FC = ({ date, isHacks, damageTypeHeadline, + isFoodChoices, }) => { const { habitTooltipTitle } = longevityData[locale]; const isMobile = useIsWidthLessThan(956); @@ -95,7 +96,9 @@ const LongevitySubSection: FC = ({ {description ? (
) : (
{children}
diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts b/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts index 8a4a519..27b281d 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts @@ -8,4 +8,5 @@ export type LongevitySubSectionProps = { date?: string; isHacks?: boolean; damageTypeHeadline?: string; + isFoodChoices?: boolean; }; diff --git a/src/layouts/DietLayout/DietLayout.tsx b/src/layouts/DietLayout/DietLayout.tsx index b37774c..d9ed356 100644 --- a/src/layouts/DietLayout/DietLayout.tsx +++ b/src/layouts/DietLayout/DietLayout.tsx @@ -166,6 +166,7 @@ const DietLayout: FC = ({ locale, data }) => { />