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:
Alexander Makarov
2014-02-19 21:54:09 +03:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }