mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Merge pull request #2903 from limonspb/cli_height_fix
Cli tab: vertical flex fix and removing scroll bars
This commit is contained in:
commit
b98e042f4d
2 changed files with 9 additions and 5 deletions
|
@ -3,7 +3,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-cli .content_wrapper {
|
.tab-cli .content_wrapper {
|
||||||
height: calc(100% - 92px);
|
flex-direction: column;
|
||||||
|
display: flex;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-cli p {
|
.tab-cli p {
|
||||||
|
@ -15,7 +18,7 @@
|
||||||
border: 1px solid var(--subtleAccent);
|
border: 1px solid var(--subtleAccent);
|
||||||
background-color: rgba(0, 0, 0, 0.75);
|
background-color: rgba(0, 0, 0, 0.75);
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
height: calc(100% - 90px); /* - (p, textarea) */
|
flex-grow: 1;
|
||||||
background-image: url("../../images/light-wide-1.svg");
|
background-image: url("../../images/light-wide-1.svg");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 50% 80%;
|
background-position: 50% 80%;
|
||||||
|
@ -71,6 +74,7 @@
|
||||||
|
|
||||||
.tab-cli .window .wrapper {
|
.tab-cli .window .wrapper {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-cli .window .error_message {
|
.tab-cli .window .error_message {
|
||||||
|
|
|
@ -363,9 +363,9 @@ const lineFeedCode = 10;
|
||||||
const carriageReturnCode = 13;
|
const carriageReturnCode = 13;
|
||||||
|
|
||||||
function writeToOutput(text) {
|
function writeToOutput(text) {
|
||||||
const windowWrapper = TABS.cli.GUI.windowWrapper;
|
TABS.cli.GUI.windowWrapper.append(text);
|
||||||
windowWrapper.append(text);
|
const cliWindow = $('.tab-cli .window');
|
||||||
$('.tab-cli .window').scrollTop(windowWrapper.height());
|
cliWindow.scrollTop(cliWindow.prop("scrollHeight"));
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeLineToOutput(text) {
|
function writeLineToOutput(text) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue