Skip to content

Commit 5627e86

Browse files
authored
Auto merged - #2497 at Thu, 10 Jun 2021 01:23:30 GMT
Prevent drag/dop and text selection on most elements.
2 parents bb18610 + ad329c5 commit 5627e86

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/css/main.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
border: 0;
2929
list-style: none;
3030
outline: none;
31+
user-select: none;
32+
-webkit-user-drag: none;
33+
-webkit-app-region: no-drag;
34+
}
35+
36+
*[draggable="true"] {
37+
-webkit-user-drag: element;
3138
}
3239

3340
html, body {
@@ -871,6 +878,10 @@ input[type="number"]::-webkit-inner-spin-button {
871878
bottom: 0;
872879
}
873880

881+
#log .wrapper > *, #log .wrapper > * > *{
882+
user-select: text;
883+
}
884+
874885
#log a {
875886
font-weight: normal;
876887
color: #ffbb00;

src/css/tabs/cli.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@
3434
font-family: monospace;
3535
color: white;
3636
box-sizing: border-box;
37-
-webkit-user-select: text;
3837
float: left;
3938
}
4039

40+
41+
.tab-cli .window .wrapper, .tab-cli .window .wrapper > * {
42+
user-select: text;
43+
}
44+
4145
.tab-cli textarea[name='commands'] {
4246
-webkit-box-sizing: border-box;
4347
width: 100%;

0 commit comments

Comments
 (0)