enhance(ui):

This commit is contained in:
徐涛 2024-04-07 18:42:21 +08:00
parent 6d97d437a2
commit 019652ca67
2 changed files with 10 additions and 1 deletions

View File

@ -14,3 +14,6 @@
overflow-y: auto;
min-height: 0;
}
.product-item {
cursor: pointer;
}

View File

@ -91,7 +91,13 @@ function ProductItem(props: ProductItemProps) {
}, [props.id, selected, append, remove]);
return (
<Box px="sm" py="xs" bg={selected ? "green" : "gray"} onClick={handleSelectAction}>
<Box
px="sm"
py="xs"
bg={selected ? "green" : "gray"}
className={classes["product-item"]}
onClick={handleSelectAction}
>
<Text size="xs" c={selected ? "white" : "gray"}>
{props.name}
</Text>