From fa749b652f948a92ce9c1cc37a69da05339ffbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Sun, 25 Jan 2026 10:35:54 +0100 Subject: [PATCH] fix: text wrapping --- src/components/project_list.rs | 2 +- src/components/task_list_item.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/project_list.rs b/src/components/project_list.rs index cd85a79..28b5ae1 100644 --- a/src/components/project_list.rs +++ b/src/components/project_list.rs @@ -13,7 +13,7 @@ pub(crate) fn ProjectList() -> Element { div { key: "{project.id}", class: format!( - "px-7 py-4 select-none {}", + "px-7 py-4 select-none {} text-pretty wrap-anywhere", if project_being_edited().is_some_and(|p| p.id == project.id) { "bg-zinc-700" } else { "" } diff --git a/src/components/task_list_item.rs b/src/components/task_list_item.rs index e2c1b0b..26b3b47 100644 --- a/src/components/task_list_item.rs +++ b/src/components/task_list_item.rs @@ -18,7 +18,7 @@ pub(crate) fn TaskListItem(task: TaskWithSubtasks) -> Element { div { class: "pt-0.75 flex flex-col", div { - class: "grow font-medium", + class: "grow font-medium text-pretty wrap-anywhere", {task.task.title} }, div {