From 9c391db16c1a54936fa76fc63ee4abb52e9e4076 Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 16 Feb 2023 15:47:05 -0800 Subject: [PATCH] remove collapsed feature for now, fix some small issues --- src/main.tsx | 2 +- src/sh2.less | 6 +++++- src/term.ts | 8 +++++--- src/ws.ts | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index e3f18c84..77ed0f94 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -721,7 +721,7 @@ class LineCmd extends React.Component<{sw : ScreenWindow, line : LineType, width
-
+
diff --git a/src/sh2.less b/src/sh2.less index 4a244e85..9fbe93d5 100644 --- a/src/sh2.less +++ b/src/sh2.less @@ -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; diff --git a/src/term.ts b/src/term.ts index 845bf650..fc8240c1 100644 --- a/src/term.ts +++ b/src/term.ts @@ -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) { diff --git a/src/ws.ts b/src/ws.ts index ef250f37..9097c8b1 100644 --- a/src/ws.ts +++ b/src/ws.ts @@ -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"); }