Skip to content

Commit bb1a501

Browse files
committed
fix: solve horizontal overflowing problem of text in node
1 parent 460e1f6 commit bb1a501

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config/cytoscape-style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const style = [
2323
const w = ele.data('style').width;
2424
const h = ele.data('style').height;
2525
const val = Math.min(w, h);
26-
if (val < 20) return 10;
26+
if (val < 20) return 5;
2727
if (val > 500) return 60;
2828
return 10 + ((val - 20) * 50) / 480;
2929
},

0 commit comments

Comments
 (0)