Skip to content

Commit

Permalink
CiCell: improve info box (preserve 'message' whitespace)
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Jun 12, 2021
1 parent 1aa2008 commit 1681be9
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/components/CiCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
<td v-bind:class="cssClassObject" @click="details = !details">
{{ data.status || "unknown" }}
<div class="add-info" v-if="details && data.failure">
<p>
Message: {{ data.failure.message }}
</p>
<pre v-if="data.failure.trace">{{ data.failure.trace }}</pre>
<div v-if="data.failure.message">
Message:
<pre>{{ data.failure.message }}</pre>
</div>
<div v-if="data.failure.trace">
Stack trace:
<pre>{{ data.failure.trace }}</pre>
</div>
</div>
</td>
</template>
Expand Down Expand Up @@ -69,5 +73,11 @@ th.section {
position: absolute;
background: #F0F0F0;
border: 1px solid #A0A0A0;
padding: 1.5rem;
}
.add-info > :last-child,
.add-info > :last-child :last-child {
margin-bottom: 0;
}
</style>

0 comments on commit 1681be9

Please sign in to comment.