embed picture

This commit is contained in:
Delucse
2020-09-30 09:41:31 +02:00
parent f7a0e7594d
commit 1cef36e0f2
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -23,6 +23,11 @@ class Instruction extends Component {
<Hardware picture={step.hardware}/> : null}
{areRequirements > 0 ?
<Requirement tutorialIds={step.requirements}/> : null}
{step.picture ?
<div style={{display: 'flex', justifyContent: 'center', marginBottom: '5px'}}>
<img src={`/media/tutorial/${step.picture}`} alt='' style={{maxWidth: '100%'}}/>
</div>
: null}
{step.xml ?
<Grid container spacing={2} style={{marginBottom: '5px'}}>
<Grid item xs={12}>