Skip to content

Commit 3860672

Browse files
committed
grow label width to make easy to click
1 parent 9ab753b commit 3860672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ListItem = ({ id, content, completed, todos }: ListItemProps) => {
2323
return (
2424
<>
2525
<div className="todo_item flex items-center justify-between w-full group px-5 py-2 relative">
26-
<div>
26+
<div className='flex items-center w-full'>
2727
<input
2828
onChange={handleChange}
2929
id={id}
@@ -51,7 +51,7 @@ const ListItem = ({ id, content, completed, todos }: ListItemProps) => {
5151
"
5252
/>
5353

54-
<label htmlFor={id} className="todo_content cursor-pointer">
54+
<label htmlFor={id} className="todo_content flex-1 cursor-pointer">
5555
{content}
5656
</label>
5757
</div>

0 commit comments

Comments
 (0)