The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Keep the last column resize handle inside the table
Rafi0cb4f6ae415d
diff --git a/packages/ui/src/table/table.tsx b/packages/ui/src/table/table.tsxindex 5fe7213efe..304addcfe2 100644--- a/packages/ui/src/table/table.tsx+++ b/packages/ui/src/table/table.tsx@@ -651,7 +651,13 @@ export function Table<T>({onMouseDown={header.getResizeHandler()}onTouchStart={header.getResizeHandler()}onClick={(e) => e.stopPropagation()}- className={resizingClassName}+ className={cn(+ resizingClassName,+ // keep the last handle inside the table, so it does not widen the scroll area+ header.index ===+ headerGroup.headers.length - 1 &&+ "mr-0 after:translate-x-0",+ )}/>)}</th>