修复柱状图不显示:w-full 导致 flex 溢出,改为 flex-1 均分空间
This commit is contained in:
parent
31f4d247fe
commit
8a9e0226d0
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue