Skip to content

Commit 7611a9c

Browse files
committed
Fix mobile ui breaking
1 parent 1ff448c commit 7611a9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class App extends Component {
103103
return (
104104
<div className="container">
105105
<div className="row">
106-
<div className="col-md-8 offset-md-2">
106+
<div className="col-md-10 offset-md-1">
107107
<h3 className="text-center" id="title">TimeZone Track </h3>
108108
<AsyncSelect id="country" className="text-center" cacheOptions loadOptions={this.loadOptions} placeholder={"Search for your City"} onChange={this.handleCountry} noOptionsMessage={() => "Search for your City"} value={this.state.value}/>
109109
<List lists={this.state.lists} deleteCountry={this.deleteCountry}/>
@@ -168,12 +168,12 @@ class Card extends Component {
168168
<div style={{"minHeight": "18px"}} className="">
169169
{ this.state.showClose && <FontAwesomeIcon icon={faTimes} className="pointer" style={{display: this.state.showClose, "marginLeft": "auto", "marginRight": 0}} onClick={this.deleteCountry.bind(this, this.props.countryName)} key={this.props.countryName}/> }
170170
</div>
171-
<div className="row" >
172-
<div className="col">
171+
<div className="row">
172+
<div className="col-sm-6" style={{textAlign: "center"}}>
173173
<h4 id="country-name">{this.props.countryName}</h4>
174174
<p id="timezone">{timezone}</p>
175175
</div>
176-
<div className="col vertical-center custom-text-center pull-right">
176+
<div className="col-sm-6 pull-right" style={{textAlign: "center"}}>
177177
<h5 id="time" style={{display: "block"}}>
178178
{moment().tz(timezone).format('MMM Do, hh:mm A')} <br/>
179179
<Diffhours timezone={timezone}/>

0 commit comments

Comments
 (0)