diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 0e95b63..b13a631 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -2,14 +2,14 @@ import type { ComponentProps, ParentProps } from "solid-js"; import { splitProps } from "solid-js"; import { cn } from "@/lib/cn"; +// No scroll wrapper here: every Table sits inside DataTableFrame, which is the +// single overflow container — a second one nests scrollbars inside the border. export function Table(props: ParentProps>) { const [local, rest] = splitProps(props, ["class", "children"]); return ( -
- - {local.children} -
-
+ + {local.children} +
); } diff --git a/src/index.css b/src/index.css index a6390d3..4605d65 100644 --- a/src/index.css +++ b/src/index.css @@ -141,7 +141,7 @@ } .data-table th { - @apply h-9 whitespace-nowrap border-r border-border/60 px-3 text-left text-[11px] font-semibold uppercase tracking-[0.08em] last:border-r-0; + @apply h-9 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/60 px-3 text-left text-[11px] font-semibold uppercase tracking-[0.08em] last:border-r-0; } .data-table td { diff --git a/src/pages/courses-page.tsx b/src/pages/courses-page.tsx index 1d93137..3bb897e 100644 --- a/src/pages/courses-page.tsx +++ b/src/pages/courses-page.tsx @@ -227,13 +227,13 @@ function CoursesContent() { - +
- - - + + +