Specs formatting

This commit is contained in:
Ruben van de Ven 2020-01-22 16:07:04 +01:00
parent c97ac4b05d
commit c153ff55f9

View file

@ -83,14 +83,17 @@
<div class="svgcrop" style="height: 110px; overflow: hidden"> <div class="svgcrop" style="height: 110px; overflow: hidden">
<object :data="hit.svg_image" style="margin-top: -60px" type="image/svg+xml"></object> <object :data="hit.svg_image" style="margin-top: -60px" type="image/svg+xml"></object>
</div> </div>
<p class="descriptor">duration</p>
<p>{{duration(hit.assignment.submit_page_at, hit.assignment.created_at)}}</p>
<template v-if="hit.path_length"> <div class='columns'>
<p class="descriptor">drawing distance</p> <div class='column'>
<p>{{hit.path_length}} pixels</p> <p class="descriptor">duration</p>
</template> <p>{{duration(hit.assignment.submit_page_at, hit.assignment.created_at)}}</p>
<!-- DURATION en afstand lijntekening --> </div>
<div class='column'v-if="hit.path_length">
<p class="descriptor">drawing distance</p>
<p>{{hit.path_length}} pixels</p>
</div>
</div>
</div> </div>