Skip to content

Commit d29ccc0

Browse files
committed
final design tweaks
1 parent 5c731c9 commit d29ccc0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/shared/containers/Gigs/RecruitCRMJobs.jsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,16 @@ class RecruitCRMJobsContainer extends React.Component {
253253
<div styleName={`hotlist-item-${indx + 1}`} to={`${config.GIGS_PAGES_PATH}/${hjob.slug}`} key={`hotlist-item-${indx + 1}`}>
254254
<div styleName="location"><IconBlackLocation /> {hjob.country}</div>
255255
<h5 styleName="job-title">{hjob.name}</h5>
256-
<div styleName="job-money">${hjob.min_annual_salary} - ${hjob.max_annual_salary} / {getSalaryType(hjob.salary_type)}</div>
257-
<div styleName="job-desc">
258-
{
259-
`${getCustomField(hjob.custom_fields, 'Hotlist excerpt') === 'n/a' ? '' : `${getCustomField(hjob.custom_fields, 'Hotlist excerpt').substring(0, CONTENT_PREVIEW_LENGTH)}...`}`
260-
}
261-
</div>
256+
<div styleName="job-money">${hjob.min_annual_salary} - {hjob.max_annual_salary} / {getSalaryType(hjob.salary_type)}</div>
257+
{
258+
getCustomField(hjob.custom_fields, 'Hotlist excerpt') !== 'n/a' ? (
259+
<div styleName="job-desc">
260+
{
261+
`${getCustomField(hjob.custom_fields, 'Hotlist excerpt').substring(0, CONTENT_PREVIEW_LENGTH)}${getCustomField(hjob.custom_fields, 'Hotlist excerpt').length > CONTENT_PREVIEW_LENGTH ? '...' : ''}`
262+
}
263+
</div>
264+
) : null
265+
}
262266
<Link styleName={`hotlist-item-button-${indx + 1}`} to={`${config.GIGS_PAGES_PATH}/${hjob.slug}`} onClick={this.onHotlistApply}>Apply Now</Link>
263267
</div>
264268
)))

src/shared/containers/Gigs/jobLisingStyles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
svg {
138138
margin-right: 5px;
139139
width: 15px;
140-
height: 22px;
140+
height: 17px;
141141
}
142142
}
143143

0 commit comments

Comments
 (0)