From fe749e45fb3d15bff09e613df3f912b9f60317f3 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sun, 5 Jan 2014 13:09:21 +0100 Subject: [PATCH] fixed issue with too long th columns in debugger fixes #1787 --- extensions/yii/debug/assets/main.css | 4 ++-- extensions/yii/debug/views/default/panels/db/detail.php | 1 + extensions/yii/debug/views/default/panels/log/detail.php | 1 + extensions/yii/debug/views/default/panels/profile/detail.php | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/yii/debug/assets/main.css b/extensions/yii/debug/assets/main.css index 63df423..cc38766 100644 --- a/extensions/yii/debug/assets/main.css +++ b/extensions/yii/debug/assets/main.css @@ -28,12 +28,12 @@ ul.trace { float: right; } -td { +td, th { white-space: pre-line; word-wrap: break-word; } -th { +.detail-grid-view th { white-space: nowrap; } diff --git a/extensions/yii/debug/views/default/panels/db/detail.php b/extensions/yii/debug/views/default/panels/db/detail.php index 826c045..ee5b2a5 100644 --- a/extensions/yii/debug/views/default/panels/db/detail.php +++ b/extensions/yii/debug/views/default/panels/db/detail.php @@ -9,6 +9,7 @@ use yii\grid\GridView; echo GridView::widget([ 'dataProvider' => $dataProvider, 'id' => 'db-panel-detailed-grid', + 'options' => ['class' => 'detail-grid-view'], 'filterModel' => $searchModel, 'filterUrl' => $panel->getUrl(), 'columns' => [ diff --git a/extensions/yii/debug/views/default/panels/log/detail.php b/extensions/yii/debug/views/default/panels/log/detail.php index f3a1cd1..83f9817 100644 --- a/extensions/yii/debug/views/default/panels/log/detail.php +++ b/extensions/yii/debug/views/default/panels/log/detail.php @@ -10,6 +10,7 @@ use yii\log\Logger; echo GridView::widget([ 'dataProvider' => $dataProvider, 'id' => 'log-panel-detailed-grid', + 'options' => ['class' => 'detail-grid-view'], 'filterModel' => $searchModel, 'filterUrl' => $panel->getUrl(), 'rowOptions' => function ($model, $key, $index, $grid) { diff --git a/extensions/yii/debug/views/default/panels/profile/detail.php b/extensions/yii/debug/views/default/panels/profile/detail.php index 842795a..95c50e1 100644 --- a/extensions/yii/debug/views/default/panels/profile/detail.php +++ b/extensions/yii/debug/views/default/panels/profile/detail.php @@ -8,6 +8,7 @@ use yii\helpers\Html; echo GridView::widget([ 'dataProvider' => $dataProvider, 'id' => 'profile-panel-detailed-grid', + 'options' => ['class' => 'detail-grid-view'], 'filterModel' => $searchModel, 'filterUrl' => $panel->getUrl(), 'columns' => [