Borales/yii2-phone-input

it does not look good with bootstrap

michaelnguyen2021 opened this issue · 3 comments

it looks ugly with bootstrap, any suggestions to fix it ?

2017-03-30_1659

thanks

@michaelnguyen547 try to pass bootstrap-specific css class to this component

had the same issue.
Try adding to css:
.intl-tel-input {width: 100%;}
or
.intl-tel-input,.intl-tel-input input {width: 100%}

thanks @TonisOrmisson for the tip

for my case, i did

    .intl-tel-input,.intl-tel-input input {
        width: 100%;
    }

    .intl-tel-input input {
        padding: 6px 12px;
    }

and I also add class to input field so it shows proper format

<? echo $form->field($model, 'primary_phone', ['options' => ['class' => 'col-md-3']])->widget(PhoneInput::className(), [
    'jsOptions' => [
        'preferredCountries' => ['no', 'pl', 'ua'],
    ],
    'defaultOptions' => [
        'class' => 'form-control'
    ]
]);
?>

phone

Thanks for this awesome plugin