🔧 fix(constants.tsx): reduce MAX_WORDS_HIGHLIGHT from 110 to 79 to limit the number of highlighted words in tooltips
🔥 chore(genericModal/index.tsx): remove console.log statement
This commit is contained in:
parent
fe2525750e
commit
36844cdcdb
2 changed files with 1 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ export const MAX_LENGTH_TO_SCROLL_TOOLTIP = 200;
|
|||
* Number maximum of components to scroll on tooltips
|
||||
* @constant
|
||||
*/
|
||||
export const MAX_WORDS_HIGHLIGHT = 110;
|
||||
export const MAX_WORDS_HIGHLIGHT = 79;
|
||||
|
||||
/**
|
||||
* The base text for subtitle of Export Dialog (Toolbar)
|
||||
|
|
|
|||
|
|
@ -125,8 +125,6 @@ export default function GenericModal({
|
|||
wordsHighlight.forEach(element => {
|
||||
sumOfCaracteres = sumOfCaracteres + element.replace(/[{}]/g, "").length
|
||||
});
|
||||
console.log(sumOfCaracteres);
|
||||
|
||||
return sumOfCaracteres > MAX_WORDS_HIGHLIGHT ? "code-highlight" : "code-nohighlight"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue