Skip to content

Commit 41ae57f

Browse files
committed
fiX: mouse hover issue
1 parent e77e451 commit 41ae57f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"output": "release"
6868
},
6969
"files": [
70-
"dist/**/*"
70+
"dist/**/*",
71+
"src/main/**/*"
7172
],
7273
"mac": {
7374
"category": "public.app-category.developer-tools"

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
onlyBuiltDependencies:
2+
- electron
3+
- esbuild

src/renderer/components/TaskList.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export function TaskList({ onSelectTask }: TaskListProps) {
117117
setSelectedIndex(index);
118118
onSelectTask(task);
119119
}}
120-
onMouseEnter={() => setSelectedIndex(index)}
121120
/>
122121
))
123122
)}
@@ -137,10 +136,9 @@ interface TaskItemProps {
137136
task: Task;
138137
isSelected: boolean;
139138
onClick: () => void;
140-
onMouseEnter: () => void;
141139
}
142140

143-
function TaskItem({ task, isSelected, onClick, onMouseEnter }: TaskItemProps) {
141+
function TaskItem({ task, isSelected, onClick }: TaskItemProps) {
144142
const createdAt = new Date(task.created_at);
145143
const timeAgo = formatDistanceToNow(createdAt, { addSuffix: true });
146144

@@ -154,7 +152,6 @@ function TaskItem({ task, isSelected, onClick, onMouseEnter }: TaskItemProps) {
154152
isSelected ? 'bg-dark-surface' : 'hover:bg-dark-surface/50'
155153
)}
156154
onClick={onClick}
157-
onMouseEnter={onMouseEnter}
158155
>
159156
<div className="flex items-center gap-2">
160157
<span className="text-dark-text-muted">

0 commit comments

Comments
 (0)