Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): enlarge table column resize hitbox (#20334)
p0ny2f7960bf984e
diff --git a/frontend/src/react/components/ui/column-resize-handle.tsx b/frontend/src/react/components/ui/column-resize-handle.tsxindex 043eea2e92..528c4689d2 100644--- a/frontend/src/react/components/ui/column-resize-handle.tsx+++ b/frontend/src/react/components/ui/column-resize-handle.tsx@@ -16,11 +16,13 @@ export function ColumnResizeHandle({return (<divclassName={cn(- "absolute right-0 top-1/4 h-1/2 w-[3px] cursor-col-resize rounded-full bg-control-bg-hover hover:bg-accent/60 active:bg-accent transition-colors",+ "group absolute right-[-6px] top-0 z-10 h-full w-3 cursor-col-resize",className)}onMouseDown={onMouseDown}onClick={(e) => e.stopPropagation()}- />+ >+ <span className="pointer-events-none absolute left-1/2 top-1/4 h-1/2 w-[3px] -translate-x-1/2 rounded-full bg-control-bg-hover transition-colors group-hover:bg-accent/60 group-active:bg-accent" />+ </div>);}diff --git a/frontend/src/react/components/ui/table.test.tsx b/frontend/src/react/components/ui/table.test.tsxindex d764786181..02a657ba1b 100644--- a/frontend/src/react/components/ui/table.test.tsx+++ b/frontend/src/react/components/ui/table.test.tsx@@ -1,4 +1,5 @@import { describe, expect, test } from "vitest";+import { ColumnResizeHandle } from "./column-resize-handle";import { TableBody, TableRow } from "./table";describe("table primitives", () => {@@ -24,4 +25,13 @@ describe("table primitives", () => {expect(element.props["data-striped"]).toBe("false");expect(element.props.className).toContain("!bg-transparent");});++ test("ColumnResizeHandle uses a raised 12px hitbox around a 3px visual bar", () => {+ const element = ColumnResizeHandle({ onMouseDown: () => {} });++ expect(element.props.className).toContain("right-[-6px]");+ expect(element.props.className).toContain("w-3");+ expect(element.props.className).toContain("z-10");+ expect(element.props.children.props.className).toContain("w-[3px]");+ });});