mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 08:48:28 +00:00
I can't push the scrollbar all the way to the edge because XTerm.js is doing some fancy calculations for their viewport width and when I try to mess with the CSS too much everything breaks, but I was able to get the scrollbar thumb to be slightly wider and slightly closer to the edge without everything falling apart
154 lines
3.2 KiB
Text
154 lines
3.2 KiB
Text
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
.connection-btn {
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
line-height: 1;
|
|
display: flex;
|
|
background-color: orangered;
|
|
justify-content: flex-start;
|
|
width: 200px;
|
|
}
|
|
|
|
.view-term {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
padding-left: 4px;
|
|
position: relative;
|
|
|
|
.term-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 4px 10px;
|
|
height: 35px;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.term-connectelem {
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
line-height: 1;
|
|
}
|
|
|
|
.term-htmlelem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
|
|
.term-htmlelem-focus {
|
|
height: 0;
|
|
width: 0;
|
|
input {
|
|
width: 0;
|
|
height: 0;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.term-htmlelem-content {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
&.term-mode-term {
|
|
.term-connectelem {
|
|
display: flex;
|
|
}
|
|
.term-htmlelem {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&.term-mode-html {
|
|
.term-connectelem {
|
|
display: none;
|
|
}
|
|
.term-htmlelem {
|
|
display: flex;
|
|
}
|
|
|
|
.ijson iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
.term-stickers {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: var(--zindex-termstickers);
|
|
pointer-events: none;
|
|
|
|
.term-sticker-image {
|
|
img {
|
|
object-fit: contain;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.term-sticker-svg {
|
|
svg {
|
|
object-fit: contain;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.terminal {
|
|
.xterm-viewport {
|
|
right: -7px;
|
|
}
|
|
.xterm-viewport::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar-track {
|
|
background-color: var(--scrollbar-background-color);
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar-thumb {
|
|
display: none;
|
|
background-color: var(--scrollbar-thumb-color);
|
|
border-radius: 4px;
|
|
margin: 0 1px 0 1px;
|
|
|
|
&:hover {
|
|
background-color: var(--scrollbar-thumb-hover-color);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--scrollbar-thumb-active-color);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.xterm-viewport::-webkit-scrollbar-thumb {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|