💄 (task record) blob in step # column

This commit is contained in:
Julien Calixte
2023-04-15 18:55:31 +02:00
parent cba119b3fc
commit 6bf41b9d61
2 changed files with 16 additions and 13 deletions

View File

@@ -51,19 +51,21 @@ const isSuperiorToEstimation = computed(() => {
<template>
<tr v-if="step" class="step-record">
<td class="rank">
<td class="td-rank">
<div class="rank">
<div v-if="isCurrentStep" class="blob green"></div>
<span v-else>
{{ stepNumber }}
</span>
</div>
</td>
<td class="status">
<span v-if="stepRecord?.end && !isSuperiorToEstimation"></span>
<span v-else-if="isSuperiorToEstimation"> </span>
<span v-else></span>
</td>
<td>
<div class="step-title">
<div v-if="isCurrentStep" class="blob green"></div>
<td class="step-title">
{{ step.title }}
</div>
</td>
<td class="estimation minutes">{{ step.estimation }} min</td>
<td class="minutes" v-if="stepRecord">{{ duration }} min</td>
@@ -85,22 +87,23 @@ $blob-size: 15px;
.rank {
text-align: right;
display: flex;
justify-content: end;
align-items: center;
min-height: 30px;
}
.blob {
border-radius: 50%;
min-height: $blob-size;
min-width: $blob-size;
height: $blob-size;
width: $blob-size;
background: rgba(51, 217, 178, 1);
box-shadow: 0 0 0 0 rgba(51, 217, 178, 1);
animation: pulse 2s infinite;
}
.step-title {
display: flex;
align-items: center;
padding-right: 1rem;
gap: 1rem;
}
.minutes {

View File

@@ -46,7 +46,7 @@ const isSuperiorToEstimation = computed(() => {
</h1>
<h2 class="subtitle" v-if="record">{{ formatLongDate(record.start) }}</h2>
<record-controls :task-id="taskId" :record-id="recordId" />
<table class="table is-striped is-narrow is-hoverable is-fullwidth">
<table class="table is-striped is-hoverable is-fullwidth">
<thead>
<tr>
<th>#</th>