Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 2d2ac17

Browse files
committed
🐛 Fix selecting text & mouse events handling
1 parent a518887 commit 2d2ac17

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/assets/css/main_shell.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ section#main_shell pre {
4444

4545
.terminal .xterm-viewport {
4646
overflow: hidden;
47+
cursor: default;
48+
position: absolute;
49+
right: 0;
50+
left: 0;
51+
top: 0;
52+
bottom: 0;
4753
}
4854

4955
.xterm {
50-
font-family: inherit;
56+
font-family: monospace;
5157
font-feature-settings: "liga" 0;
5258
position: relative;
5359
user-select: none;
54-
-ms-user-select: none;
5560
-webkit-user-select: none;
5661
}
5762

@@ -97,6 +102,10 @@ section#main_shell pre {
97102
overflow-y: hidden;
98103
}
99104

105+
.xterm .xterm-screen {
106+
position: relative;
107+
}
108+
100109
.xterm canvas {
101110
position: absolute;
102111
left: 0;
@@ -112,6 +121,7 @@ section#main_shell pre {
112121
visibility: hidden;
113122
position: absolute;
114123
left: -9999em;
124+
line-height: normal;
115125
}
116126

117127
.xterm.enable-mouse-events {

0 commit comments

Comments
 (0)