update width

This commit is contained in:
Qiuxia Fan 2022-05-24 11:22:19 +08:00
parent 046a6c1f9d
commit 814a1a738d

View File

@ -71,7 +71,7 @@ function drawGraph() {
const width = (graph.value && graph.value.getBoundingClientRect().width) || 0;
const w = width < 800 ? 802 : width;
flameChart.value = flamegraph()
.width(w - 2)
.width(w - 15)
.cellHeight(18)
.transitionDuration(750)
.minFrameSize(1)