cap the height of preset textarea to 800px

pull/253/head
Abdullah Alfaraj 2023-05-14 23:01:46 +03:00
parent 746ab9af37
commit 28b2ed50f9
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ function setPresetSettingsHtml(preset_settings) {
const new_lines_count = general.countNewLines(JSONInPrettyFormat)
new_lines_count
preset_settings_element.style.height = new_lines_count * 12 + 100
preset_settings_element.style.height =
Math.min(new_lines_count * 12 + 100, 800).toString() + 'px'
}
function getPresetName() {