diff --git a/BACKEND/app/services/line_connection.ts b/BACKEND/app/services/line_connection.ts index cd8741e..9ff2033 100644 --- a/BACKEND/app/services/line_connection.ts +++ b/BACKEND/app/services/line_connection.ts @@ -92,8 +92,7 @@ export default class LineConnection { }) this.client.on('data', (data) => { - if (this.connecting) return - let message = data.toString() + let message = this.connecting ? cleanData(data.toString()) : data.toString() let rawData = '' if (this.isRunningScript) { this.waitingScenario = true @@ -127,7 +126,12 @@ export default class LineConnection { this.getInventory() }, 3000) } - appendLog(message, this.config.stationId, this.config.lineNumber, this.config.port) + appendLog( + cleanData(message), + this.config.stationId, + this.config.lineNumber, + this.config.port + ) }) this.client.on('error', (err) => { diff --git a/FRONTEND/src/App.css b/FRONTEND/src/App.css index 6577239..06868ae 100644 --- a/FRONTEND/src/App.css +++ b/FRONTEND/src/App.css @@ -4,6 +4,11 @@ /* background-color: aliceblue; */ } -button:focus{ +button:focus { outline: none; -} \ No newline at end of file +} + +.xterm-viewport { + overflow-y: hidden !important; + overscroll-behavior: contain; +} diff --git a/FRONTEND/src/App.tsx b/FRONTEND/src/App.tsx index 28757c7..559912a 100644 --- a/FRONTEND/src/App.tsx +++ b/FRONTEND/src/App.tsx @@ -412,7 +412,57 @@ function App() { setShowBottomShadow(y < maxScroll - 2); }} > - {station.lines.length > 0 ? ( + {station.lines.length > 8 ? ( + + + + {station.lines.slice(0, 8).map((line, i) => ( + + ))} + + + + + {station.lines + .slice(8, station.lines.length) + .map((line, i) => ( + + ))} + + + + ) : station.lines.length <= 8 && station.lines.length > 0 ? ( {station.lines.map((line, i) => ( = ({ height: "100%", backgroundColor: "black", paddingBottom: customStyle.paddingBottom ?? "10px", - minHeight: customStyle.maxHeight ?? "73vh", + maxHeight: customStyle.maxHeight ?? "73vh", }} >