Skip to content

Commit

Permalink
Increase todo item hitbox
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 committed Jan 10, 2024
1 parent 17a235b commit 5fdf12b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions src/lib/Modal/TodoModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,15 @@
data-exclude-drag-modal
>
<div class="label-container">
<input
type="checkbox"
checked={item.status === 'completed' ? true : false}
class="input-checkbox"
on:input={(event) => handleStatus(event, item.uid)}
/>
<label for={item.uid} class="hitbox">
<input
id={item.uid}
type="checkbox"
checked={item.status === 'completed' ? true : false}
class="input-checkbox"
on:input={(event) => handleStatus(event, item.uid)}
/>
</label>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span
Expand Down Expand Up @@ -377,7 +380,6 @@
flex-grow: 1;
margin-right: 0.5rem;
padding: 0.8rem;
cursor: pointer;
width: 100%;
justify-content: space-between;
}
Expand All @@ -392,11 +394,19 @@
.item-name {
flex-grow: 1;
margin-left: 0.5rem;
cursor: text;
}
.add-config-button {
display: flex;
justify-content: space-between;
width: 100%;
}
.hitbox {
display: inline-block;
padding: 14px 8px 14px 14px;
margin: -14px -8px -14px -14px;
cursor: pointer;
}
</style>

0 comments on commit 5fdf12b

Please sign in to comment.