feat: update style

This commit is contained in:
Fine 2023-02-13 17:44:34 +08:00
parent 21be504f13
commit a8bdddb23a
2 changed files with 27 additions and 9 deletions

View File

@ -204,3 +204,6 @@ div.vis-tooltip {
.vis-item.vis-selected.Normal {
color: #1a1a1a !important;
}
.el-progress__text {
font-size: 12px !important;
}

View File

@ -81,15 +81,16 @@ limitations under the License. -->
<div class="message mb-5 b">
{{ i.event }}
</div>
<div
class="timeline-table-i-scope mr-10 l sm"
:class="{
blue: i.scope === 'Service',
green: i.scope === 'Endpoint',
yellow: i.scope === 'ServiceInstance',
}"
>
{{ t(i.scope.toLowerCase()) }}
<div class="timeline-table-i-scope mr-10 l sm">
<el-progress
:percentage="((i.endTime - i.startTime) / currentSpan.dur) * 100"
:show-text="false"
:stroke-width="15"
/>
<span>
<b>{{ t("duration") }}: </b>
<b>{{ (i.endTime - i.startTime) * 1000000 }} ns</b>
</span>
</div>
<div class="grey sm show-xs">
{{ `${visDate(Number(i.endTime))}:${i.endTimeNanos}` }}
@ -242,6 +243,16 @@ limitations under the License. -->
padding: 0;
}
.el-progress--line {
width: 300px;
font-size: 12px;
}
.timeline-table-i-scope {
border: none;
padding: 0;
}
.time-line {
padding: 0;
max-width: 260px;
@ -272,4 +283,8 @@ limitations under the License. -->
.link-hover:hover {
color: #448dfe;
}
b {
font-weight: normal;
}
</style>