remove collapsed feature for now, fix some small issues

This commit is contained in:
sawka
2023-02-16 15:47:05 -08:00
parent 45f107a650
commit 9c391db16c
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ class LineCmd extends React.Component<{sw : ScreenWindow, line : LineType, width
<div key="focus" className={cn("focus-indicator", {"selected": isSelected}, {"active": isSelected && isFocused}, {"fg-focus": isFgFocused})}/>
<div key="header" className="line-header">
<LineAvatar line={line} cmd={cmd}/>
<div key="collapsed" className="collapsed-indicator" title={isCollapsed ? "output collapsed, click to show" : "click to hide output" } onClick={this.handleCollapsedClick}>
<div style={{display: "none"}} key="collapsed" className="collapsed-indicator" title={isCollapsed ? "output collapsed, click to show" : "click to hide output" } onClick={this.handleCollapsedClick}>
<If condition={isCollapsed}><i className="fa fa-caret-right"/></If>
<If condition={!isCollapsed}><i className="fa fa-caret-down"/></If>
</div>
+5 -1
View File
@@ -439,7 +439,7 @@ html, body, #main {
.avatar {
cursor: pointer;
margin-right: 0;
margin-right: 10px;
}
.line-header {
@@ -454,6 +454,10 @@ html, body, #main {
}
}
.meta.meta-line1 {
margin-left: 2px;
}
.line-star {
display: none;
cursor: pointer;
+5 -3
View File
@@ -252,9 +252,11 @@ class TermWrap {
this.receiveData(this.dataUpdates[i].pos, this.dataUpdates[i].data, "reload-update-" + i);
}
this.dataUpdates = [];
this.terminal.write(new Uint8Array(), () => {
this.updateUsedRows(true, "reload");
});
if (this.terminal != null) {
this.terminal.write(new Uint8Array(), () => {
this.updateUsedRows(true, "reload");
});
}
}
reload(delayMs : number) {
+1 -1
View File
@@ -85,7 +85,7 @@ class WSControl {
@boundMethod
onclose(event : any) {
console.log("close", event);
// console.log("close", event);
if (event.wasClean) {
this.log("connection closed");
}