mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
clean up
This commit is contained in:
parent
bed17bc2ba
commit
47e24e1dab
@ -53,7 +53,7 @@ const { t } = useI18n();
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
flex-grow: 2;
|
flex-grow: 2;
|
||||||
min-width: 700px;
|
min-width: 700px;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: calc(100% - 330px);
|
width: calc(100% - 330px);
|
||||||
}
|
}
|
||||||
|
@ -190,10 +190,10 @@ async function init() {
|
|||||||
|
|
||||||
function drawGraph() {
|
function drawGraph() {
|
||||||
const dom = chart.value?.getBoundingClientRect() || {
|
const dom = chart.value?.getBoundingClientRect() || {
|
||||||
height: 30,
|
height: 20,
|
||||||
width: 0,
|
width: 0,
|
||||||
};
|
};
|
||||||
height.value = (dom.height || 40) - 30;
|
height.value = (dom.height || 40) - 20;
|
||||||
width.value = dom.width;
|
width.value = dom.width;
|
||||||
diff.value[0] = (dom.width - radius * 2) / 2 + radius;
|
diff.value[0] = (dom.width - radius * 2) / 2 + radius;
|
||||||
svg.value.call(zoom(d3, graph.value, diff.value));
|
svg.value.call(zoom(d3, graph.value, diff.value));
|
||||||
|
Loading…
Reference in New Issue
Block a user