[Profiler] Fix text selection on exception pages
This commit is contained in:
parent
adc39a2f57
commit
ff6151b15f
@ -478,6 +478,11 @@
|
|||||||
addEventListener(toggles[i], 'click', function(e) {
|
addEventListener(toggles[i], 'click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ('' !== window.getSelection().toString()) {
|
||||||
|
/* Don't do anything on text selection */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var toggle = e.target || e.srcElement;
|
var toggle = e.target || e.srcElement;
|
||||||
|
|
||||||
/* needed because when the toggle contains HTML contents, user can click */
|
/* needed because when the toggle contains HTML contents, user can click */
|
||||||
|
@ -89,7 +89,6 @@ header .container { display: flex; justify-content: space-between; }
|
|||||||
.exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
|
.exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
|
||||||
|
|
||||||
.trace + .trace { margin-top: 30px; }
|
.trace + .trace { margin-top: 30px; }
|
||||||
.trace-head { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
|
|
||||||
.trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
|
.trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
|
||||||
.trace-head .trace-namespace { color: #999; display: block; font-size: 13px; }
|
.trace-head .trace-namespace { color: #999; display: block; font-size: 13px; }
|
||||||
.trace-head .icon { position: absolute; right: 0; top: 0; }
|
.trace-head .icon { position: absolute; right: 0; top: 0; }
|
||||||
|
@ -478,6 +478,11 @@
|
|||||||
addEventListener(toggles[i], 'click', function(e) {
|
addEventListener(toggles[i], 'click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
if ('' !== window.getSelection().toString()) {
|
||||||
|
/* Don't do anything on text selection */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var toggle = e.target || e.srcElement;
|
var toggle = e.target || e.srcElement;
|
||||||
|
|
||||||
/* needed because when the toggle contains HTML contents, user can click */
|
/* needed because when the toggle contains HTML contents, user can click */
|
||||||
|
@ -316,7 +316,6 @@ EOF;
|
|||||||
.exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
|
.exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
|
||||||
|
|
||||||
.trace + .trace { margin-top: 30px; }
|
.trace + .trace { margin-top: 30px; }
|
||||||
.trace-head { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
|
|
||||||
.trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
|
.trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
|
||||||
|
|
||||||
.trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
|
.trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
|
||||||
|
Reference in New Issue
Block a user