Browse Source

phone input responsive fix (#12)

Reviewed-on: #12
Co-authored-by: YaroslavBerkuta <yaroslavberkuta@gmail.com>
Co-committed-by: YaroslavBerkuta <yaroslavberkuta@gmail.com>
pull/13/head
YaroslavBerkuta 9 months ago committed by Vitalik Yatsenko
parent
commit
97cc4fc36a
  1. 6
      src/scss/main.scss
  2. 7
      src/shared/components/fields/input-mask-field.component.tsx

6
src/scss/main.scss

@ -593,3 +593,9 @@ input[type="number"] { @@ -593,3 +593,9 @@ input[type="number"] {
.highlight {
color: #000 !important;
}
@media (min-width: 768px) {
.col-md-3 {
padding-right: 8px;
}
}

7
src/shared/components/fields/input-mask-field.component.tsx

@ -51,6 +51,7 @@ export const InputMaskField: FC<IProps> = ({ @@ -51,6 +51,7 @@ export const InputMaskField: FC<IProps> = ({
containerStyle={{
flexDirection: "row-reverse",
display: "flex",
width: "auto",
}}
country={"ua"}
enableSearch={false}
@ -60,7 +61,11 @@ export const InputMaskField: FC<IProps> = ({ @@ -60,7 +61,11 @@ export const InputMaskField: FC<IProps> = ({
border: "none",
background: "transparent",
}}
inputStyle={{ background: "transparent", paddingLeft: 0 }}
inputStyle={{
background: "transparent",
paddingLeft: 0,
width: "100%",
}}
onChange={(value: string) => {
onChange(value);
}}

Loading…
Cancel
Save