Skip to content

Commit 1f25046

Browse files
committed
adjsuted aspect ratio for component map
1 parent 951682c commit 1f25046

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ export default function ComponentMap({
126126
overflowY: 'auto',
127127
};
128128

129-
const formatRenderTime: string = (time: number): string => {
130-
if (!time) return 'No time information';
131-
const renderTime = time.toFixed(3);
132-
return `${renderTime} ms `;
133-
};
134-
135129
const nodeList: [] = []; // create a nodeList array to store our nodes as a flat array
136130

137131
const collectNodes: void = (node) => {
@@ -450,7 +444,7 @@ export default function ComponentMap({
450444
}
451445
}
452446
} else {
453-
aspect = Math.max(aspect, 1);
447+
aspect = Math.max(aspect, 0.8);
454448
}
455449

456450
// mousing controls & Tooltip display logic

0 commit comments

Comments
 (0)