Skip to content

Commit 831a359

Browse files
author
joseph lenton
committed
fixed display background title not showing
The optional display title in the background, which can be customized, was not being displayed. It was because the z-index put it behind the background. When corrected, it also had to be made so that it remains underneath all of the other elements on the page.
1 parent 2163b1f commit 831a359

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

src/php_error.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ private function generateDumpHTML( $arrays, $request, $response, $server ) {
24362436
}
24372437
}
24382438

2439-
return "<div class='error_dumps'>" .
2439+
return "<div class='error-dumps'>" .
24402440
$html .
24412441
$arrToHtml( 'request', $request, 'dump_request' ) .
24422442
$arrToHtml( 'response', $response, 'dump_response' ) .
@@ -3068,6 +3068,7 @@ function() use (
30683068
<div id="error-back"><?php echo $backgroundText ?></div>
30693069
</div>
30703070
<?php } ?>
3071+
30713072
<h2 id="error-file-root"><?php echo $serverName ?> | <?php echo $applicationRoot ?></h2>
30723073
<h2 id="ajax-info">
30733074
<span id="ajax-tab" class="ajax-button">AJAX PAUSED</span>
@@ -3296,8 +3297,8 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
32963297
margin-top: 0;
32973298
}
32983299
.background {
3299-
background: #111;
33003300
width: 100%;
3301+
background: #111;
33013302

33023303
padding: 18px 24px;
33033304
-moz-box-sizing: border-box;
@@ -3325,7 +3326,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
33253326
height: auto;
33263327
min-height: 0;
33273328

3328-
overflow: visible;
3329+
overflow: hidden;
33293330
}
33303331

33313332
#ajax-info {
@@ -3387,6 +3388,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
33873388
}
33883389

33893390
#error-title {
3391+
position: relative;
33903392
white-space: pre-wrap;
33913393
}
33923394

@@ -3399,43 +3401,46 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
33993401
right: 0;
34003402
top: 0;
34013403
position: absolute;
3402-
overflow: hidden;
34033404

3404-
z-index: -1;
3405-
width: 100%;
3406-
height: 100%;
3405+
width : 100%;
3406+
height: 0;
34073407
}
34083408
#error-back {
34093409
font-size: 240px;
34103410
color: #211600;
34113411
position: absolute;
34123412
top: 60px;
3413-
right: -80px;
3413+
right: -40px;
34143414

34153415
-webkit-transform: rotate( 24deg );
34163416
-moz-transform: rotate( 24deg );
34173417
-ms-transform: rotate( 24deg );
34183418
-o-transform: rotate( 24deg );
34193419
transform: rotate( 24deg );
34203420
}
3421+
34213422
<?php
34223423
/*
34233424
* Code Snippets at the top
34243425
*/
34253426
?>
34263427
#error-file.has_code {
34273428
margin: 24px 0 0 167px;
3429+
position: relative;
34283430
}
34293431
#error-linenumber {
34303432
position: absolute;
34313433
text-align: right;
3432-
left: 0;
3434+
right: 101%;
34333435
width: 178px;
34343436
}
34353437
#ajax-info,
34363438
#error-file-root {
34373439
color: #666;
34383440
}
3441+
#error-file-root {
3442+
position: relative;
3443+
}
34393444
#error-files {
34403445
line-height: 0;
34413446
font-size: 0;
@@ -3531,6 +3536,8 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
35313536
width: 100%;
35323537
}
35333538
#error-stack-trace {
3539+
position: relative;
3540+
35343541
line-height: 28px;
35353542
cursor: pointer;
35363543
}
@@ -3592,7 +3599,9 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
35923599
* Error Dump Info (post, get, session)
35933600
*/
35943601
?>
3595-
.error_dumps {
3602+
.error-dumps {
3603+
position: relative;
3604+
35963605
margin-top: 48px;
35973606
padding-top: 32px;
35983607
width: 100%;

0 commit comments

Comments
 (0)