From 3a8f3dab389bea285e83165c3ada3588bea1082a Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 26 Aug 2022 22:07:12 -0700 Subject: [PATCH] lines spacer to have content scroll up from bottom --- src/main.tsx | 3 ++- src/sh2.less | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 53374b499..f01394bfa 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -556,7 +556,7 @@ class CmdInput extends React.Component<{}, {}> {
- {infoMsg.infoerror} + [error] {infoMsg.infoerror}
@@ -783,6 +783,7 @@ class ScreenWindowView extends React.Component<{sw : ScreenWindow}, {}> { {sw.name.get()}{sw.shouldFollow.get() ? "*" : ""}
+
win.lines.length-1-7} cmdRefNum={cmdRefMap[line.lineid] ?? 0}/> diff --git a/src/sh2.less b/src/sh2.less index e2cb69bdb..5f0c9a7d3 100644 --- a/src/sh2.less +++ b/src/sh2.less @@ -396,7 +396,7 @@ html, body, #main { overflow: hidden; flex-shrink: 0; - &:first-child { + &:nth-child(2) { margin: 0px 5px 5px 5px; padding: 0px 5px 5px 5px; border-top: none; @@ -560,9 +560,13 @@ body .xterm .xterm-viewport { padding-right: 0px; flex-grow: 1; - .line:first-child { + .line:nth-child(2) { padding-top: 1px; } + + .lines-spacer { + flex-grow: 1; + } } .cmd-input {