mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Padding changes
This commit is contained in:
parent
0e10c122b8
commit
ccc4d2e01a
2 changed files with 8 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
.listing {
|
||||
.bookable {
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
|
|
@ -31,14 +31,14 @@
|
|||
.thumbnailContainer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 2rem 1.5rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.squareWrapper {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 100px;
|
||||
margin: 0 0.5rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
/* Firefox doesn't support image aspect ratio inside flexbox */
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
}
|
||||
|
||||
.description {
|
||||
margin: 2rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.map {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { intlShape, injectIntl } from 'react-intl';
|
|||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { union, without } from 'lodash';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import * as propTypes from '../../util/propTypes';
|
||||
import { types } from '../../util/sdkLoader';
|
||||
|
|
@ -139,9 +140,11 @@ export class ListingPageComponent extends Component {
|
|||
currentListing.author.id.uuid === currentUser.id.uuid;
|
||||
const showBookButton = !isOwnListing;
|
||||
|
||||
const listingClasses = classNames(css.listing, { [css.bookable]: showBookButton });
|
||||
|
||||
const pageContent = (
|
||||
<PageLayout title={`${title} ${formattedPrice}`} className={this.state.pageClassNames}>
|
||||
<div className={css.listing}>
|
||||
<div className={listingClasses}>
|
||||
<div className={css.header}>
|
||||
<h1 className={css.title}>{title}</h1>
|
||||
<div className={css.price} title={priceTitle}>{formattedPrice}</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue