-
Couldn't load subscription status.
- Fork 79
Addressing Tomasz's issues #2441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2441 +/- ##
=======================================
Coverage 94.14% 94.14%
=======================================
Files 164 164
Lines 19390 19390
=======================================
Hits 18254 18254
Misses 1136 1136Continue to review full report at Codecov.
|
qiita_pet/static/js/networkVue.js
Outdated
|
|
||
| /** | ||
| * | ||
| * Funtion to format the node labels so they don't overlap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funtion -> Function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
qiita_pet/static/js/networkVue.js
Outdated
| var limit = 35; | ||
| // Split the input string by the space characters | ||
| var labelArray = label.split(' '); | ||
| // For the new label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the new label? Not sure what it means ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
qiita_pet/static/js/networkVue.js
Outdated
| var newLabel = labelArray[0]; | ||
| var aux; | ||
| var lastNewLineIdx = 0; | ||
| // Note that the foor loop starts with 1 because we have already used the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
foor -> for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
| var labelArray = label.split(' '); | ||
| // For the new label | ||
| var newLabel = labelArray[0]; | ||
| var aux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this variable declared here or can we just declare it within the for loop (line 27)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to declare it here rather than being it declared in each iteration of the for loop.
This aligns the div under the network with the rest of the page.
Adds a function to make sure the a single line of a node label is no longer than 35 characters. If it is, it just changes the last space on that line by a new line.