@@ -1304,7 +1317,10 @@ class MainSideBar extends React.Component<{}, {}> {
diff --git a/src/model.ts b/src/model.ts
index 2912ce37..f47b36d8 100644
--- a/src/model.ts
+++ b/src/model.ts
@@ -1265,6 +1265,15 @@ class Model {
cmdStatusUpdate(sessionId : string, cmdId : string, origStatus : string, newStatus : string) {
// TODO force recompute usedrows in terminal when status changes to done
console.log("cmd status", sessionId, cmdId, origStatus, "=>", newStatus);
+ let sw = this.getActiveSW();
+ if (sw == null || sw.sessionId != sessionId) {
+ return;
+ }
+ let term = sw.terms[cmdId];
+ if (term == null) {
+ return;
+ }
+ setTimeout(() => term.updateUsedRows(true), 500);
}
onMetaArrowUp() : void {
@@ -1406,7 +1415,7 @@ class Model {
if ("sessions" in update) {
let oldActiveScreen = this.getActiveScreen();
genMergeData(this.sessionList, update.sessions, (s : Session) => s.sessionId, (sdata : SessionDataType) => sdata.sessionid, (sdata : SessionDataType) => new Session(sdata), (s : Session) => s.sessionIdx.get());
- if (!("activatesessionid" in update)) {
+ if (!("activesessionid" in update)) {
let newActiveScreen = this.getActiveScreen();
if (oldActiveScreen != newActiveScreen) {
if (newActiveScreen == null) {
diff --git a/src/sh2.less b/src/sh2.less
index a16fe6cc..2ebf299e 100644
--- a/src/sh2.less
+++ b/src/sh2.less
@@ -184,7 +184,7 @@ html, body, #main {
border-right: 1px solid #aaa;
padding: 0 5px 5px 5px;
width: 200px;
- overflow-x: auto;
+ overflow-x: hidden;
display: flex;
flex-direction: column;
color: #ddd;
@@ -234,6 +234,14 @@ html, body, #main {
}
}
+ .menu-list li.remote-menu-item {
+ a {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ }
+
.menu-list li a {
color: #bbb;
white-space: nowrap;
@@ -260,6 +268,11 @@ html, body, #main {
font-size: 10px;
}
+ .small-text {
+ color: #777;
+ font-size: 10px;
+ }
+
&.is-active {
color: #ddd;
font-weight: bold;