From d231127727c80a057e66227e0597f163d08dc8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 15 Jul 2026 19:18:27 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20courses=20table=20overflo?= =?UTF-8?q?w=20and=20clipped=20actions=20column=20-=20table.tsx:=20drop=20?= =?UTF-8?q?Table's=20own=20scroll=20wrapper;=20DataTableFrame=20is=20the?= =?UTF-8?q?=20single=20overflow=20container=20(nested=20scrollbars=20rende?= =?UTF-8?q?red=20inside=20table=20border)=20-=20courses-page:=20colgroup?= =?UTF-8?q?=20term=209rem,=20creator=2010rem,=20actions=205rem;=20min-w=20?= =?UTF-8?q?56rem=20->=2044rem=20(fits=20without=20horizontal=20scroll)=20-?= =?UTF-8?q?=20css:=20data-table=20th=20overflow-hidden=20text-ellipsis=20s?= =?UTF-8?q?o=20header=20text=20never=20paints=20past=20its=20column?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/table.tsx | 10 +++++----- src/index.css | 2 +- src/pages/courses-page.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) 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() { - +
- - - + + +