Skip to content

Commit 040e1fa

Browse files
committed
Fix tooltips
1 parent db85d05 commit 040e1fa

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/result/GenericResultViewTag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function GenericResultViewTag({ field, result, icon, label, valueMapper }
3535

3636
return (
3737
<Tooltip delayDuration={500}>
38-
<TooltipTrigger asChild>{base}</TooltipTrigger>
38+
<TooltipTrigger>{base}</TooltipTrigger>
3939
<TooltipContent>{label}</TooltipContent>
4040
</Tooltip>
4141
)

src/stories/FairDOElasticSearch.stories.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ const demoConfig: FairDOConfig = {
8888
}
8989
]
9090
},
91-
disjunctiveFacets: ["NMR_Method.keyword"]
91+
disjunctiveFacets: [
92+
"NMR_Method.keyword",
93+
"resourceType.keyword",
94+
"Pulse_Sequence_Name.keyword",
95+
"Acquisition_Nucleus.keyword",
96+
"licenseURL.keyword"
97+
]
9298
}
9399

94100
const demoConfigWithCompound: FairDOConfig = {
@@ -211,7 +217,8 @@ export const CompoundSlider: Story = {
211217
{
212218
icon: <AtomIcon className="rfs-shrink-0 rfs-size-4 rfs-mr-2" />,
213219
field: "Compound.Molar_mass",
214-
label: "Molar Mass"
220+
label: "Molar Mass (g/mol)",
221+
valueMapper: (v) => v + " g/mol"
215222
}
216223
]}
217224
titleField="name"

0 commit comments

Comments
 (0)