Unverified Commit e8039a7d authored by Matri's avatar Matri Committed by GitHub

fix: add flex-wrap to categories container (#944)

parent 5e054007
...@@ -25,7 +25,7 @@ const Category: FC<ICategoryProps> = ({ ...@@ -25,7 +25,7 @@ const Category: FC<ICategoryProps> = ({
const itemClassName = (isSelected: boolean) => cn(isSelected ? 'bg-white text-primary-600 border-gray-200 font-semibold' : 'border-transparent font-medium', 'flex items-center h-7 px-3 border cursor-pointer rounded-lg') const itemClassName = (isSelected: boolean) => cn(isSelected ? 'bg-white text-primary-600 border-gray-200 font-semibold' : 'border-transparent font-medium', 'flex items-center h-7 px-3 border cursor-pointer rounded-lg')
const itemStyle = (isSelected: boolean) => isSelected ? { boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.05)' } : {} const itemStyle = (isSelected: boolean) => isSelected ? { boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.05)' } : {}
return ( return (
<div className={cn(className, 'flex space-x-1 text-[13px]')}> <div className={cn(className, 'flex space-x-1 text-[13px] flex-wrap')}>
<div <div
className={itemClassName(value === '')} className={itemClassName(value === '')}
style={itemStyle(value === '')} style={itemStyle(value === '')}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment