mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-19 16:01:57 +08:00
Merge pull request #2494 from resurtm/fix-debug-scroll-bar
Fix scrollbar in the Debug module when viewing PHP info output
This commit is contained in:
@@ -34,6 +34,10 @@ td, th {
|
|||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.config-php-info-table td.v {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.detail-grid-view th {
|
.detail-grid-view th {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class ConfigPanel extends Panel
|
|||||||
$pinfo = ob_get_contents();
|
$pinfo = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
$phpinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo);
|
$phpinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo);
|
||||||
$phpinfo = str_replace('<table ', '<table class="table table-condensed table-bordered table-striped table-hover"', $phpinfo);
|
$phpinfo = str_replace('<table ', '<table class="table table-condensed table-bordered table-striped table-hover config-php-info-table"', $phpinfo);
|
||||||
|
|
||||||
return $phpinfo;
|
return $phpinfo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user