Skip to content

Commit

Permalink
refactor strikethrough style for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
avidrucker committed Nov 21, 2023
1 parent ddc14a6 commit 69fdd3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TodoItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function TodoItem({ task, isBenchmark, cancelFunc, cloneFunc, theme }) {
return (
<li className={`flex lh-copy align-start mb1 ${
(task.status === "done" || task.status === "cancelled") && "o-50"} ${
isBenchmark ? "fw6" : "fw4"} ${task.status === "cancelled" && "strike"}`}>
isBenchmark ? "fw6" : "fw4"}`}>
<span title={task.status} className="mr1 dib h-15">
{(statusToSymbol(task.status) !== null) ?
statusToSymbol(task.status) :
statusToSymbol(task.was)}</span>
<span className={``}>{task.text}</span>
<span className={`${task.status === "cancelled" && "strike"}`}>{task.text}</span>
<div className="relative ml1 h-15">
{task.status === "new" || task.status === "ready" ?
<button
Expand Down

0 comments on commit 69fdd3a

Please sign in to comment.