fix radio group in mobile
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user