From 37a01e4d966b3d92045cc5c6fc289d5dec657a1d Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Thu, 21 May 2026 10:59:55 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20mobile=20layout=20=E2=80=94=20no=20h?= =?UTF-8?q?orizontal=20page=20scroll,=20truncate=20names,=20scrollable=20c?= =?UTF-8?q?ard=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Page scroll container is overflow-x-hidden so the interface stays fixed; long content can no longer push the page wider than the viewport (tree was ~50% cut off). - CardTable wrapped in overflow-x-auto with a min-width so only the table scrolls horizontally on small screens. - Sublesson and lesson-tree rows get min-w-0 so truncate works in flex; long names now ellipsize instead of overflowing. Tree drag handle + hover actions hidden on mobile (were unusable via touch anyway), freeing width for the name. - Lesson detail title wraps and scales down on mobile. --- packages/frontend/src/components/CardTable.tsx | 4 ++-- packages/frontend/src/components/Layout.tsx | 4 ++-- packages/frontend/src/components/LessonTree.tsx | 10 +++++----- packages/frontend/src/components/SublessonList.tsx | 6 +++--- packages/frontend/src/pages/LessonDetail.tsx | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/CardTable.tsx b/packages/frontend/src/components/CardTable.tsx index bf13343..d790a4d 100644 --- a/packages/frontend/src/components/CardTable.tsx +++ b/packages/frontend/src/components/CardTable.tsx @@ -27,8 +27,8 @@ export function CardTable({ } return ( -
- +
+
diff --git a/packages/frontend/src/components/Layout.tsx b/packages/frontend/src/components/Layout.tsx index 51d9cae..d1fcdbe 100644 --- a/packages/frontend/src/components/Layout.tsx +++ b/packages/frontend/src/components/Layout.tsx @@ -98,8 +98,8 @@ export function Layout() { )} -
-
+
+
diff --git a/packages/frontend/src/components/LessonTree.tsx b/packages/frontend/src/components/LessonTree.tsx index 56fe5d4..addbafd 100644 --- a/packages/frontend/src/components/LessonTree.tsx +++ b/packages/frontend/src/components/LessonTree.tsx @@ -105,18 +105,18 @@ function TreeRow({ n, depth }: { n: LessonTreeNode; depth: number }) {
  • {isOwner && ( ⋮⋮ )} - - + + {n.name} {n.cardCount} @@ -131,7 +131,7 @@ function TreeRow({ n, depth }: { n: LessonTreeNode; depth: number }) { )} {isOwner && ( -
    +
    diff --git a/packages/frontend/src/components/SublessonList.tsx b/packages/frontend/src/components/SublessonList.tsx index 4017ad6..ebc21fb 100644 --- a/packages/frontend/src/components/SublessonList.tsx +++ b/packages/frontend/src/components/SublessonList.tsx @@ -8,9 +8,9 @@ export function SublessonList({ items }: { items: LessonTreeNode[] }) {

    Sublessen

      {items.map((c) => ( -
    • - {c.name} - +
    • + {c.name} + {c.cardCount}
    • diff --git a/packages/frontend/src/pages/LessonDetail.tsx b/packages/frontend/src/pages/LessonDetail.tsx index e85e41d..e872d50 100644 --- a/packages/frontend/src/pages/LessonDetail.tsx +++ b/packages/frontend/src/pages/LessonDetail.tsx @@ -110,8 +110,8 @@ export function LessonDetailPage() {
      -
      -

      +
      +

      {node?.name ?? '…'} {visibilityBadge}

  • Vraag