Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
fixes for safari, image
Browse files Browse the repository at this point in the history
  • Loading branch information
chintogtokh committed May 19, 2018
1 parent 9aa2ac8 commit 478e070
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
Binary file added frontend/public/images/Untitled-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/images/noimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions frontend/src/components/allsuburbs/AllSuburbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class AllSuburbs extends Component {
.then(metaResponse => {
var imageURL = "";
if(metaResponse.data.status !== "OK"){
imageURL = "images/transparent.png";
imageURL = "images/noimage.png";
}
else{
imageURL = 'http://maps.googleapis.com/maps/api/streetview?size=640x480&location=' + shel.coords.lat + "," + shel.coords.lng + '&pitch=0&sensor=false&key=' + this.googleMapsApiKey;
Expand Down Expand Up @@ -373,8 +373,8 @@ class AllSuburbs extends Component {

<nav aria-label="breadcrumb">
<ol className="breadcrumb">
{this.props.history.length>3 &&
<li className="breadcrumb-item"><a href="#"><i onClick={this.props.history.goBack} className="fas fa-chevron-circle-left"></i></a></li>
{this.props.history.length>1 &&
<li className="breadcrumb-item"><a onClick={this.props.history.goBack}><i className="fas fa-chevron-circle-left"></i></a></li>
}
<li className="breadcrumb-item"><Link to="/">Home</Link></li>
<li className="breadcrumb-item active" aria-current="page">Suburb Suggestions</li>
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/allsuburbs/AllSuburbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ main{
.breadcrumb-item.active{
color:black;
}

.breadcrumb-item a{
color: #007bff;

i:hover{
cursor: pointer;
}
}
}

.star-label{
Expand All @@ -198,7 +206,7 @@ main{
}

.card{
background: rgba(255,255,255,0.9);
background: rgba(255,255,255,0.7);
}

.suburb-link{
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/suburb/Suburb.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ class Suburb extends Component {

<nav aria-label="breadcrumb">
<ol className="breadcrumb">
{this.props.history.length>3 &&
<li className="breadcrumb-item"><a href="#"><i onClick={this.props.history.goBack} className="fas fa-chevron-circle-left"></i></a></li>
{this.props.history.length>1 &&
<li className="breadcrumb-item"><a onClick={this.props.history.goBack}><i className="fas fa-chevron-circle-left"></i></a></li>
}
<li className="breadcrumb-item"><Link to="/">Home</Link></li>
<li className="breadcrumb-item"><Link to="/suburb">Suburb Suggestions</Link></li>
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/components/suburb/Suburb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@
color:black;
}

.breadcrumb-item a{
color: #007bff;

i:hover{
cursor: pointer;
}
}

}

.star-label{
Expand Down

0 comments on commit 478e070

Please sign in to comment.