mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-23 17:50:19 +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:
parent
fab625a4d4
commit
b87f8d07d5
1 changed files with 6 additions and 4 deletions
|
@ -6,6 +6,7 @@ body, html {
|
|||
}
|
||||
|
||||
body {
|
||||
user-select: none;
|
||||
background: #002B36;
|
||||
}
|
||||
|
||||
|
@ -15,6 +16,11 @@ body {
|
|||
height: calc(100% - 40px);
|
||||
}
|
||||
|
||||
.text-container > pre,
|
||||
.text-container > textarea {
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
/* textarea */
|
||||
|
||||
textarea {
|
||||
|
@ -180,7 +186,3 @@ textarea {
|
|||
#messages li.error {
|
||||
background:rgba(102,8,0,0.8);
|
||||
}
|
||||
|
||||
#linenos {
|
||||
user-select: none;
|
||||
}
|
Loading…
Reference in a new issue