diff --git a/src/linecomps.tsx b/src/linecomps.tsx index 3ff0ee8e78..3c3d635524 100644 --- a/src/linecomps.tsx +++ b/src/linecomps.tsx @@ -155,10 +155,12 @@ class LineCmd extends React.Component<{screen : LineContainerModel, line : LineT rtnStateDiffFetched : boolean = false; lastHeight : number; isOverflow : OV = mobx.observable.box(false, {name: "line-overflow"}); + isMinimised : OV = mobx.observable.box(false, {name: "line-minimised"}); isCmdExpanded : OV = mobx.observable.box(false, {name: "cmd-expanded"}); constructor(props) { super(props); + } checkStateDiffLoad() : void { @@ -365,6 +367,11 @@ class LineCmd extends React.Component<{screen : LineContainerModel, line : LineT GlobalCommandRunner.lineBookmark(line.lineid); } + @boundMethod + clickMinimise() { + this.isMinimised.set(!this.isMinimised.get()) + } + @boundMethod handleResizeButton() { console.log("resize button"); @@ -583,33 +590,38 @@ class LineCmd extends React.Component<{screen : LineContainerModel, line : LineT
- - - - - - - - - - - -
- -
state unchanged
-
-
- -
new state
-
-
{this.rtnStateDiff.get()}
-
-
-
- -
-
focus line ({renderCmdText("L")})
+
+
+
+ + + + + + + + + + + +
+ +
state unchanged
+
+
+ +
new state
+
+
{this.rtnStateDiff.get()}
+
+
+
+ +
+
focus line ({renderCmdText("L")})
+
+
); diff --git a/src/lines.less b/src/lines.less index 54b6cbc521..60527737f4 100644 --- a/src/lines.less +++ b/src/lines.less @@ -56,6 +56,10 @@ .line-bookmark:hover { color: white; } + + .line-minimise:hover { + color: white; + } .line-icon + .line-icon { margin-left: 5px;