Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(list): swap mouse-enter for mouse-move on list entity (#1434)

Seamus528b56a6f73d
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
index a31ddf5bfa..29671cff0d 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
@@ -587,7 +587,7 @@ export const SoupViewList = (props: SoupViewListProps) => {
highlighted={
panel.isPanelActive() && row.isFocused()
}
- onMouseOver={() => {
+ onMouseMove={() => {
if (isKeypressActive()) return;
if (soup.previewEntity()) return;
soup.focus.set(row.original.id);
diff --git a/js/app/packages/entity/src/composed/ListEntity.tsx b/js/app/packages/entity/src/composed/ListEntity.tsx
index 2cb8cad7c0..efc5c5dce5 100644
--- a/js/app/packages/entity/src/composed/ListEntity.tsx
+++ b/js/app/packages/entity/src/composed/ListEntity.tsx
@@ -41,8 +41,7 @@ interface ListEntityProps {
highlighted?: boolean;
hovered?: boolean;
onChecked?: (checked: boolean, shiftKey: boolean) => void;
- onMouseOver?: () => void;
- onMouseLeave?: () => void;
+ onMouseMove?: () => void;
showUnrollNotifications?: boolean;
onProjectClick?: (
entity: ProjectEntity,
@@ -364,8 +363,7 @@ export function ListEntity(props: ListEntityProps) {
'bg-accent/5 outline-1 outline-accent/20 outline-offset-[-1px]':
props.highlighted,
})}
- onMouseOver={props.onMouseOver}
- onMouseLeave={props.onMouseLeave}
+ onMouseMove={props.onMouseMove}
>
<div
class={cn('absolute h-full w-[3px] left-0 top-0 bg-accent opacity-0', {