Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(mobile): cap board lane width so tablets show several columns

Andrej7de7cf74a520
diff --git a/apps/mobile/src/app/(app)/board/[projectId].tsx b/apps/mobile/src/app/(app)/board/[projectId].tsx
index f12224e16..1f5846dba 100644
--- a/apps/mobile/src/app/(app)/board/[projectId].tsx
+++ b/apps/mobile/src/app/(app)/board/[projectId].tsx
@@ -121,7 +121,7 @@ export default function BoardScreen() {
// oxlint-disable-next-line react-hooks/exhaustive-deps -- buildLanes resolves virtual lane labels through i18n.
[board.data, filters, showPlanned, showArchived, t],
);
- const laneWidth = width - inset * 2 - 36;
+ const laneWidth = Math.min(width - inset * 2 - 36, 360);
const current = lanes[Math.min(page, Math.max(0, lanes.length - 1))];
const matching = lanes.reduce((n, l) => n + l.tasks.length, 0);
const activeFilters = filterCount(filters);