mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
parent
078d305259
commit
ad8304f7a8
12 changed files with 143 additions and 134 deletions
|
@ -61,6 +61,14 @@ function tab_initialize_cli() {
|
|||
textarea.val(cli_history.next());
|
||||
});
|
||||
|
||||
// handle smaller resolutions
|
||||
if (screen.height <= 600) {
|
||||
$('div.tab-cli .window').height(200);
|
||||
}
|
||||
|
||||
// apply dynamic width to the textarea element according to cli window width (minus padding and border width)
|
||||
$('div.tab-cli textarea').width($('div.tab-cli .window').outerWidth() - 7);
|
||||
|
||||
// give input element user focus
|
||||
$('.tab-cli textarea').focus();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue