From 07a15ec40c09291a7630db3e3fe6e9975fbe0266 Mon Sep 17 00:00:00 2001 From: tamslo Date: Tue, 10 Dec 2024 10:47:26 +0100 Subject: [PATCH] feat(app): adapt tooltip texts --- app/lib/drug/widgets/tooltip_icon.dart | 3 ++- app/lib/l10n/app_en.arb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/lib/drug/widgets/tooltip_icon.dart b/app/lib/drug/widgets/tooltip_icon.dart index c901165b..8e3b0065 100644 --- a/app/lib/drug/widgets/tooltip_icon.dart +++ b/app/lib/drug/widgets/tooltip_icon.dart @@ -12,7 +12,8 @@ class TooltipIcon extends StatelessWidget { return Tooltip( key: tooltipKey, message: message, - margin: EdgeInsets.symmetric(horizontal: PharMeTheme.smallSpace), + margin: EdgeInsets.symmetric(horizontal: PharMeTheme.smallToMediumSpace), + padding: EdgeInsets.all(PharMeTheme.smallSpace), triggerMode: TooltipTriggerMode.manual, child: SizedBox( height: size, diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index 19aaf547..6ae73e3b 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -359,11 +359,11 @@ }, "gene_page_genotype": "Genotype", "@gene_page_genotype": {}, - "gene_page_genotype_tooltip": "The genotype is the variant you carry for this gene.", + "gene_page_genotype_tooltip": "The genotype tells you about your DNA and which version of a gene you have.\n\nYou carry two copies for one gene, called “alleles”, each inherited from one of your parents.", "@gene_page_genotype_tooltip": {}, "gene_page_phenotype": "Phenotype", "@gene_page_phenotype": {}, - "gene_page_phenotype_tooltip": "The phenotype often describes the gene's activity level or whether a specific variant is present.", + "gene_page_phenotype_tooltip": "The phenotype describes how your DNA affects your body.\n\nIn pharmacogenomics, it usually shows if a gene version might cause a bad reaction to a medicine or how fast your body processes a drug.", "@gene_page_phenotype_tooltip": {}, "gene_page_relevant_drugs": "Associated medications", "@gene_page_relevant_drugs": {},