Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Open search result only on title #839

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions app/configurator/components/dataset-browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty {}?

},

title: {
"&:hover": {
textDecoration: "underline",
},
},
}));
Expand Down Expand Up @@ -1138,12 +1139,7 @@ export const DatasetResult = ({
});
const classes = useResultStyles();
return (
<MotionCard
{...smoothPresenceProps}
onClick={handleClick}
elevation={1}
className={classes.root}
>
<MotionCard {...smoothPresenceProps} elevation={1} className={classes.root}>
<Stack spacing={2} sx={{ mb: 6 }}>
<Flex sx={{ justifyContent: "space-between" }}>
<Typography variant="body2" fontWeight={700} gutterBottom={false}>
Expand All @@ -1155,7 +1151,13 @@ export const DatasetResult = ({
</Tag>
)}
</Flex>
<Typography component="div" variant="body1" color="primary.main">
<Typography
component="div"
variant="body1"
onClick={handleClick}
color="primary.main"
className={classes.title}
>
{highlightedTitle ? (
<Box
component="span"
Expand Down