Skip to content

Commit f7a0600

Browse files
committed
fix: 更新图表容器和元素的宽度限制逻辑,以增强响应式布局
1 parent 5ce21bc commit f7a0600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/chart/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export const ChartElement: React.FC<RenderElementProps> = (props) => {
312312
border: '1px solid #eee',
313313
borderRadius: '0.5em',
314314
margin: 'auto',
315-
minWidth: `calc(${100 / columnLength}% - 16px)`,
315+
minWidth: `max(calc(${100 / columnLength}% - 16px), 256px)`,
316316
flex: 1,
317317
userSelect: 'none',
318318
}}

0 commit comments

Comments
 (0)