fix radio group in mobile

This commit is contained in:
hamid zarghami
2025-12-28 14:40:02 +03:30
parent 7de3678ab0
commit 9a0df75bb4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ type Props = {
const RadioGroup: FC<Props> = (props: Props) => { const RadioGroup: FC<Props> = (props: Props) => {
return ( return (
<div className='flex gap-5 items-center text-xs'> <div className='flex xl:flex-nowrap flex-wrap gap-3 xl:gap-5 items-center text-xs'>
{ {
props.items.map((item, index) => ( props.items.map((item, index) => (
<div key={index} className='flex gap-2 items-center'> <div key={index} className='flex gap-2 items-center'>
<Radio value={item.value} onChange={props.onChange} isActive={item.value === props.selected} /> <Radio value={item.value} onChange={props.onChange} isActive={item.value === props.selected} />
<div className='mt-0.5'> <div className='mt-0.5 whitespace-nowrap'>
{item.label} {item.label}
</div> </div>
</div> </div>
@@ -82,7 +82,7 @@ const ServiceHeader: FC<Props> = ({ data }) => {
</div> </div>
<div className='flex w-full flex-col justify-between xl:items-end'> <div className='flex w-full flex-col justify-between xl:items-end'>
<div className='flex xl:!hidden gap-5 mt-5'> <div className='flex xl:!hidden mt-5 w-full'>
<RadioGroup <RadioGroup
items={planItems} items={planItems}
onChange={setPlanSelected} onChange={setPlanSelected}