Skip to content

Commit

Permalink
Merge pull request #211 from FdelMazo/break-bigger-words
Browse files Browse the repository at this point in the history
Arreglar texto de los nodos de las carreras overflowing
  • Loading branch information
lopezac authored Apr 7, 2024
2 parents d42e2ef + ef86374 commit dadb941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ALWAYS_SHOW = [
function breakWords(string) {
let broken = "";
string.split(" ").forEach((element) => {
if (element.length < 5) broken += " " + element;
if (element.length < 4) broken += " " + element;
else broken += "\n" + element;
});
return broken.trim();
Expand Down

0 comments on commit dadb941

Please sign in to comment.