1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-01 01:30:21 +01:00

Make only actual text in container selectable

Previously there were preceded and appended newlines copied with the actual code when selecting everything due to invisible whitespace outside of the nested elements of the text-container
This commit is contained in:
Manuel 2021-05-02 17:58:04 +02:00
parent fab625a4d4
commit b87f8d07d5
Signed by: Manuel
GPG key ID: 4085037435E1F07A

View file

@ -6,6 +6,7 @@ body, html {
} }
body { body {
user-select: none;
background: #002B36; background: #002B36;
} }
@ -15,6 +16,11 @@ body {
height: calc(100% - 40px); height: calc(100% - 40px);
} }
.text-container > pre,
.text-container > textarea {
user-select: text;
}
/* textarea */ /* textarea */
textarea { textarea {
@ -180,7 +186,3 @@ textarea {
#messages li.error { #messages li.error {
background:rgba(102,8,0,0.8); background:rgba(102,8,0,0.8);
} }
#linenos {
user-select: none;
}