From 3962f4fc5379a9e3be302f75dda6883d3fab3dfb Mon Sep 17 00:00:00 2001 From: guenhter Date: Wed, 19 Nov 2025 07:23:48 +0100 Subject: [PATCH 1/2] chore: make main scrollbar wider --- AGENTS.md | 2 +- index.html | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index fac8cd6..4fa3ac5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ A comprehensive guide for AI agents working on the multi-ssh project, providing ## Project Overview -multi-ssh is an electron app +multi-ssh is an electron app allowing to connect to multiple ssh hosts at the same time wich one separate embedded terminal per session. ## General Guidelines diff --git a/index.html b/index.html index 7de0605..8afcab7 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,20 @@ padding-right: 5px; /* Account for scrollbar */ } + /* Very wide main scrollbar to make it easy to grab the scrollbar and not use the one from the sub-terminal */ + .terminals-container::-webkit-scrollbar { + width: 30px; + } + + .terminals-container::-webkit-scrollbar-thumb { + background: #888; + border-radius: 10px; + } + + .terminals-container::-webkit-scrollbar-track { + background: #333; + } + .terminal-wrapper { border: 2px solid #444; border-radius: 8px; From e9817f92564a588cbba703f64868f3e02080a341 Mon Sep 17 00:00:00 2001 From: guenhter Date: Wed, 19 Nov 2025 07:31:46 +0100 Subject: [PATCH 2/2] fix: avoid resizing of exited terminals --- biome.json | 2 +- forge.config.js | 4 +--- main.js | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/biome.json b/biome.json index 7ecf148..9f30ef4 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.3/schema.json", + "$schema": "https://biomejs.dev/schemas/2.3.4/schema.json", "root": true, "vcs": { "enabled": true, diff --git a/forge.config.js b/forge.config.js index acec2ab..b8b043c 100644 --- a/forge.config.js +++ b/forge.config.js @@ -5,9 +5,7 @@ module.exports = { appBundleId: "com.github.guenhter.multi-ssh", productName: "Multi SSH", files: ["main.js", "renderer.js", "index.html", "node_modules/**/*"], - extraResource: [ - "multi_ssh_config.sample.yaml" - ], + extraResource: ["multi_ssh_config.sample.yaml"], }, rebuildConfig: {}, makers: [ diff --git a/main.js b/main.js index 3cf2961..48fc2ba 100644 --- a/main.js +++ b/main.js @@ -164,6 +164,7 @@ function initializeTerminal(index, shell, host) { code: exitCode, signal, }); + ptyProcesses[index] = null; }); ptyProcesses[index] = ptyProcess;