Adjust illustrations size
This commit is contained in:
parent
800ab47a53
commit
2c4174028d
|
@ -20,10 +20,13 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.svg-250 {
|
$image-widths: 250 306 394;
|
||||||
|
@each $width in $image-widths {
|
||||||
|
&.svg-#{$width} {
|
||||||
img,
|
img,
|
||||||
svg {
|
svg {
|
||||||
width: 250px;
|
width: #{$width + 'px'};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,11 +90,12 @@
|
||||||
.build-loader-animation.js-build-refresh
|
.build-loader-animation.js-build-refresh
|
||||||
- else
|
- else
|
||||||
- illustration = @build.playable? ? 'illustrations/manual_action.svg' : 'illustrations/job_not_triggered.svg'
|
- illustration = @build.playable? ? 'illustrations/manual_action.svg' : 'illustrations/job_not_triggered.svg'
|
||||||
|
- illustration_size = @build.playable? ? 'svg-394' : 'sgv-306'
|
||||||
- title = @build.playable? ? _('This job requires a manual action') : _('This job has not been triggered yet')
|
- title = @build.playable? ? _('This job requires a manual action') : _('This job has not been triggered yet')
|
||||||
- content = @build.playable? ? _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments.') : _('This job depends on upstream jobs that need to succeed in order for this job to be triggered.')
|
- content = @build.playable? ? _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments.') : _('This job depends on upstream jobs that need to succeed in order for this job to be triggered.')
|
||||||
.row.empty-state
|
.row.empty-state
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
.svg-content
|
.svg-content{ class: illustration_size }
|
||||||
= image_tag illustration
|
= image_tag illustration
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
.text-content
|
.text-content
|
||||||
|
|
Loading…
Reference in New Issue