修复柱状图不显示:w-full 导致 flex 溢出,改为 flex-1 均分空间

This commit is contained in:
wangxiaoji 2026-06-30 11:52:29 +08:00
parent 31f4d247fe
commit 8a9e0226d0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const BarChart = ({ data = [], height = 80, barW = 24 }) => {
return ( return (
<div <div
key={i} key={i}
className='w-full flex justify-center' className='flex flex-1 justify-center'
> >
<div <div
className='rounded-sm bg-blue-500' className='rounded-sm bg-blue-500'