diff --git a/css/_dial-out.scss b/css/_dial-out.scss index 23fbb1547..7cd7bbe2c 100644 --- a/css/_dial-out.scss +++ b/css/_dial-out.scss @@ -4,20 +4,29 @@ .dial-out-content { margin-top: 5px; + /** + * Wrap the contents in flex so items can be aligned on the same line. + */ + .form-control { + display: flex; + } + /** * The style of the flag icon. */ .dial-out-flag-icon { position: absolute; left: 5px; - top: 10px; + top: 50%; + transform: translate(0, -50%); } /** * The style of the dial code element. */ .dial-out-code { - padding-left: 25px !important; + margin-bottom: 0; + padding-left: 25px; } /** @@ -31,34 +40,42 @@ * The style of the dial input element. */ .dial-out-input { - padding-left: 70px; + display: inline-block; + flex: 1; + margin-left: 5px; } /** * Re-styling the default dropdown inside the dial-out-content. */ .dropdown { - left: $formPadding; - position: absolute !important; - width: 65px + position: relative; + width: 65px; } /** * Re-styling the default form-control inside the dial-out-content. */ .form-control { - padding-bottom: 8px !important; + margin-bottom: 8px; } .dropdown { - display: inline-block; position: relative; - overflow: hidden; + + input { + padding-left: 16px; + + &:read-only { + color: inherit; + } + } } .dropdown-trigger-icon { position: absolute; right: 0; - top: 4px; + top: 50%; + transform: translate(0, -50%); } } diff --git a/react/features/dial-out/components/DialOutNumbersForm.web.js b/react/features/dial-out/components/DialOutNumbersForm.web.js index 46c1b518c..051d42d21 100644 --- a/react/features/dial-out/components/DialOutNumbersForm.web.js +++ b/react/features/dial-out/components/DialOutNumbersForm.web.js @@ -1,4 +1,5 @@ import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu'; +import AKFieldText, { FieldText } from '@atlaskit/field-text'; import ExpandIcon from '@atlaskit/icon/glyph/expand'; import React, { Component } from 'react'; import { connect } from 'react-redux'; @@ -146,13 +147,14 @@ class DialOutNumbersForm extends Component {