This commit is contained in:
Fine 2022-09-15 17:00:40 +08:00
parent bed17bc2ba
commit 47e24e1dab
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ const { t } = useI18n();
height: 100%;
flex-grow: 2;
min-width: 700px;
overflow: auto;
overflow: hidden;
position: relative;
width: calc(100% - 330px);
}

View File

@ -190,10 +190,10 @@ async function init() {
function drawGraph() {
const dom = chart.value?.getBoundingClientRect() || {
height: 30,
height: 20,
width: 0,
};
height.value = (dom.height || 40) - 30;
height.value = (dom.height || 40) - 20;
width.value = dom.width;
diff.value[0] = (dom.width - radius * 2) / 2 + radius;
svg.value.call(zoom(d3, graph.value, diff.value));