Skip to content

The open alternative to Salesforce, designed for AI.

Fix: Added grab cursor on hover over favorite icon (#4415)

Jeet Desai858416530bff
diff --git a/packages/twenty-front/src/modules/favorites/components/Favorites.tsx b/packages/twenty-front/src/modules/favorites/components/Favorites.tsx
index bda4a5db6e3..cd6ee5d8b15 100644
--- a/packages/twenty-front/src/modules/favorites/components/Favorites.tsx
+++ b/packages/twenty-front/src/modules/favorites/components/Favorites.tsx
@@ -13,6 +13,22 @@ const StyledContainer = styled(NavigationDrawerSection)`
width: 100%;
`;
+const StyledAvatar = styled(Avatar)`
+ :hover {
+ cursor: grab;
+ }
+`;
+
+const StyledNavigationDrawerItem = styled(NavigationDrawerItem)`
+ :active {
+ cursor: grabbing;
+
+ .fav-avatar:hover {
+ cursor: grabbing;
+ }
+ }
+`;
+
export const Favorites = () => {
const { favorites, handleReorderFavorite } = useFavorites();
@@ -41,15 +57,16 @@ export const Favorites = () => {
draggableId={id}
index={index}
itemComponent={
- <NavigationDrawerItem
+ <StyledNavigationDrawerItem
key={id}
label={labelIdentifier}
Icon={() => (
- <Avatar
+ <StyledAvatar
entityId={recordId}
avatarUrl={avatarUrl}
type={avatarType}
placeholder={labelIdentifier}
+ className="fav-avatar"
/>
)}
to={link}