feat: add a Spanish option in the lang selector (#98)

This commit is contained in:
Fine0830
2022-05-24 11:53:41 +08:00
committed by GitHub
parent 45f896bf36
commit b34c0b0c72
5 changed files with 18 additions and 6 deletions

View File

@@ -194,10 +194,11 @@ const setUTCMin = () => {
}
.label {
width: 160px;
width: 180px;
display: inline-block;
font-weight: 500;
color: #000;
line-height: 25px;
}
}
</style>

View File

@@ -68,12 +68,13 @@ function drawGraph() {
root.value = param[0];
root.dumpCount = param[1];
stackTree.value = root;
const w = (graph.value && graph.value.getBoundingClientRect().width) || 10;
const width = (graph.value && graph.value.getBoundingClientRect().width) || 0;
const w = width < 800 ? 802 : width;
flameChart.value = flamegraph()
.width(w - 15)
.cellHeight(18)
.transitionDuration(750)
.minFrameSize(5)
.minFrameSize(1)
.transitionEase(d3.easeCubic as any)
.sort(true)
.title("")