mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
fix node height for large data
This commit is contained in:
parent
98faab2ceb
commit
84b532c446
@ -32,7 +32,7 @@ export function getEdgeNodes(graph: any, isExpanded: boolean = true): any {
|
||||
.sort((a, b) => a - b);
|
||||
const longestLine = lineLengths.reverse()[0];
|
||||
|
||||
const height = (lines.length * 14 < 30 ? 30 : lines.length * 14) + 10;
|
||||
const height = (lines.length * 18 < 30 ? 40 : lines.length * 18);
|
||||
|
||||
nodes.push({
|
||||
id: el.id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user