From abcde019dfbb7f8a7b8b986213b96bbd9d4107cc Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 10 Nov 2022 15:53:42 +0100 Subject: [PATCH] feat: Open search result only on title --- .../components/dataset-browse.tsx | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/configurator/components/dataset-browse.tsx b/app/configurator/components/dataset-browse.tsx index 4a0cae3e0..389cc38bf 100644 --- a/app/configurator/components/dataset-browse.tsx +++ b/app/configurator/components/dataset-browse.tsx @@ -1068,11 +1068,12 @@ const useResultStyles = makeStyles((theme: Theme) => ({ borderTopWidth: 1, boxShadow: "none", - "& .MuiTypography-body1": { - transition: "font-weight 0.1s ease", - }, - "&:hover .MuiTypography-body1": { - fontWeight: "bold", + "& .MuiTypography-body1": {}, + }, + + title: { + "&:hover": { + textDecoration: "underline", }, }, })); @@ -1138,12 +1139,7 @@ export const DatasetResult = ({ }); const classes = useResultStyles(); return ( - + @@ -1155,7 +1151,13 @@ export const DatasetResult = ({ )} - + {highlightedTitle ? (