Skip to content

Commit 67a256f

Browse files
authored
Merge pull request #63 from nannany/copilot/improve-vimium-selection
Vimiumで見積もりとカテゴリフィールドを選択可能に
2 parents 8330885 + 21b48d0 commit 67a256f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ yarn-error.log*
1010

1111
.vscode/*
1212
.env
13+
.env.local
1314
.envrc
1415

1516
dist

ui/src/components/task/TaskCategoryField.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ export const TaskCategoryField = ({
110110
}
111111

112112
return (
113-
<p
114-
className="cursor-pointer hover:bg-gray-50 p-1 rounded flex items-center"
113+
<button
114+
type="button"
115+
className="cursor-pointer hover:bg-gray-50 p-1 rounded flex items-center text-left"
115116
onClick={() => {
116117
handleEditStart(task.id, "category_id", fieldValue || "");
117118
}}
@@ -123,6 +124,6 @@ export const TaskCategoryField = ({
123124
<span style={getCategoryTextStyle(selectedCategory)}>
124125
カテゴリ: {selectedCategory?.name || "(未選択)"}
125126
</span>
126-
</p>
127+
</button>
127128
);
128129
};

ui/src/components/task/TaskEstimatedTimeField.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ export const TaskEstimatedTimeField = ({
116116
}
117117

118118
return (
119-
<p
120-
className="cursor-pointer hover:bg-gray-50 p-1 rounded"
119+
<button
120+
type="button"
121+
className="cursor-pointer hover:bg-gray-50 p-1 rounded text-left"
121122
onClick={() =>
122123
handleEditStart(
123124
task.id,
@@ -130,6 +131,6 @@ export const TaskEstimatedTimeField = ({
130131
<span style={{ color: categoryColor }}>
131132
{formatEstimatedTime(task.estimated_minute) || "0分 (クリックして設定)"}
132133
</span>
133-
</p>
134+
</button>
134135
);
135136
};

0 commit comments

Comments
 (0)