Skip to content

Commit

Permalink
fixed tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Dec 2, 2024
1 parent 7d354a1 commit 08f2743
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions ui/src/components/search/bed2bed/b2b-search-results-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,24 @@ type Props = {

const columnHelper = createColumnHelper<Bed>();

// TODO: Add tooltip for score. Element is not excepted by the table
// const scoreTooltip = (
// <OverlayTrigger
// placement="left"
// overlay={
// <Tooltip id={`tooltip-info}`} className="moreinfo-tooltip">
// <pre className="text-start">
// Cosine similarity between files.
// Score is between 0 an 100, where 100 is a perfect match.
// </pre>
// </Tooltip>
// }
// >
// <span>
// Score*
// </span>
//
// </OverlayTrigger>
// )
const scoreTooltip: string = 'Score';
const scoreTooltip = (
<OverlayTrigger
placement="left"
overlay={
<Tooltip id={`tooltip-info}`} className="moreinfo-tooltip">
<pre className="text-start">
Cosine similarity between files.
Score is between 0 an 100, where 100 is a perfect match.
</pre>
</Tooltip>
}
>
<span>
Score*
</span>

</OverlayTrigger>
)

export const Bed2BedSearchResultsTable = (props: Props) => {
const { beds } = props;
Expand Down

0 comments on commit 08f2743

Please sign in to comment.