From 833547a714373481826a1f6cf0e59550a5c3b33a Mon Sep 17 00:00:00 2001 From: Toufiqr Rahman Tamkin Date: Thu, 31 Mar 2022 14:47:12 +0600 Subject: [PATCH] customize scrollbar --- app/client/public/client.htm | 4 ++++ app/client/public/webssh2.css | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/client/public/client.htm b/app/client/public/client.htm index be5c5bc..36c4178 100644 --- a/app/client/public/client.htm +++ b/app/client/public/client.htm @@ -10,6 +10,10 @@
+ Interactive Bash Terminal. A safe place to execute commands.
diff --git a/app/client/public/webssh2.css b/app/client/public/webssh2.css index 545a6a4..93f0a0a 100644 --- a/app/client/public/webssh2.css +++ b/app/client/public/webssh2.css @@ -92,9 +92,11 @@ .xterm .xterm-viewport { /* On OS X this is required in order for the scroll bar to appear fully opaque */ background-color: #000; + color: #000; overflow-y: scroll; cursor: default; position: absolute; + visibility: hidden; right: 0; left: 0; top: 0; @@ -197,8 +199,11 @@ body, html { } .box { display: block; - height: 100%; + height: 97%; + scroll-behavior: smooth; + overflow: hidden; } + #terminal-container { display: block; width: calc(100% - 1 px);