Skip to content

Commit a44398d

Browse files
fix: table scroll width
1 parent 60a984b commit a44398d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/drip-table-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drip-table-generator",
3-
"version": "3.2.2-alpha.9",
3+
"version": "3.2.2-alpha.10",
44
"description": "A visualization tool for generating schema of drip-table.",
55
"main": "dist/index.min.js",
66
"module": "lib/index.js",

packages/drip-table-generator/src/layouts/table-workstation/editable-table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function EditableTable<
5353
}, [props.tableConfig.configs.scroll?.y]);
5454
const tableWidth = React.useMemo(() => {
5555
const defaultWidth = props.tableConfig.columns.length * 200;
56-
return containerRef.current?.getContainerWidth?.() || defaultWidth;
56+
return (containerRef.current?.getContainerWidth?.() || defaultWidth) - 120;
5757
}, []);
5858

5959
const dataSourceToUse = React.useMemo(() => {

0 commit comments

Comments
 (0)