Skip to content

Commit

Permalink
text overflow in title of task in Task component was corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Juancho7 committed Dec 7, 2023
1 parent 8b07af4 commit fcbd87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Task = ({ id, title, completed, onCompleteTask, onEditTask, onDeleteTask }
? <EditTask id={id} title={title} onEditTask={onEditTask} onEditingDone={onEdit} />
: (
<>
<div className='lg:grow h-8 flex items-center lg:gap-x-2'>
<div className='lg:grow h-8 flex items-center lg:gap-x-2 overflow-hidden'>
<span className={`${completedClass} lg:order-2 w-full pl-1 text-white rounded overflow-hidden overflow-ellipsis`}>{title}</span>
<button onClick={onComplete} className='lg:order-1 h-full px-1 lg:px-3 bg-green-500 hover:bg-green-300 rounded transition-colors'>Done</button>
</div>
Expand Down

0 comments on commit fcbd87d

Please sign in to comment.