Skip to content

Commit

Permalink
Add overflow for description
Browse files Browse the repository at this point in the history
  • Loading branch information
bkruotsalainen committed Feb 20, 2024
1 parent 6c1ebfa commit f4533ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/features/kanban/KanbanTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,12 @@ export const KanbanTask = ({
{(!isUserViewer || task.content.trim() !== "") && "Description" }
{isUserViewer
?
<p className="body-text-sm break-words whitespace-pre-wrap">{task.content}</p>
<p className={`body-text-sm break-words whitespace-pre-wrap ${screenDimensions.height < 500 ? "" : "max-h-80 overflow-auto"}`}>{task.content}</p>
:
<textarea
value={task.content}
onChange={(e) => updateTask(task.Id, e.target.value)}
rows={4}
rows={8}
placeholder="Short item description goes here..."
className="w-full block border px-1 py-0.5 body-text-sm border-grayscale-300 rounded"
/>
Expand Down

0 comments on commit f4533ef

Please sign in to comment.