Small fixes

This commit is contained in:
Edin Dazdarevic
2017-04-17 15:17:45 +02:00
parent a9664dbcc0
commit c556f52b1c
7 changed files with 788 additions and 16 deletions

14
web/dist/main.css vendored
View File

@@ -386,6 +386,8 @@ html {
.address {
overflow: hidden;
font-size: 12px;
height: 50px;
margin-bottom: 20px;
}
.street {
@@ -467,6 +469,14 @@ html {
}
@media (max-width : 768px) {
.address {
margin-bottom: 0;
}
.hours-ago {
display: none;
}
.filter-bottom {
position: fixed;
bottom: 0;
@@ -480,6 +490,10 @@ html {
align-items: baseline;
}
.filter-bottom .confirm {
background-color: #b6d53b;
}
.listings-count {
display: none;
}

View File

@@ -263,7 +263,8 @@ export default class Filters extends React.Component {
<div className="clear-both" />
<div className="filter-bottom">
<div onClick={this.onResetSearch.bind(this)} className="filter-btn">Poništi</div>
<div onClick={this.onRefreshClick.bind(this, true)} className="filter-btn">Potvrdi</div>
<div onClick={this.onRefreshClick.bind(this, true)}
className="filter-btn confirm">Potvrdi</div>
</div>
</div>

View File

@@ -165,6 +165,14 @@ export default class Listings extends React.Component {
})
}
resultsString (count) {
if (count == "1") {
return "rezultat"
}
return "rezultata"
}
render () {
const {listings = new Map(), totalCount, sort} = this.props
@@ -187,7 +195,7 @@ export default class Listings extends React.Component {
</div>
</div>
<div className="listings-count">
{totalCount} rezultata
{totalCount} {this.resultsString(totalCount)}
</div>
<div