Skip to content

Commit d884eb4

Browse files
authored
Show dataset tab (#1581)
* Show dataset tab * Enable by default * Fix padding
1 parent aa9f65b commit d884eb4

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

config/debugbar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
'capture_ajax' => true,
125125
'add_ajax_timing' => false,
126126
'ajax_handler_auto_show' => true,
127+
'ajax_handler_enable_tab' => true,
127128

128129
/*
129130
|--------------------------------------------------------------------------

src/LaravelDebugbar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,10 @@ public function injectDebugbar(Response $response)
916916
$renderer = $this->getJavascriptRenderer();
917917
$autoShow = $config->get('debugbar.ajax_handler_auto_show', true);
918918
$renderer->setAjaxHandlerAutoShow($autoShow);
919+
920+
$enableTab = $config->get('debugbar.ajax_handler_enable_tab', true);
921+
$renderer->setAjaxHandlerEnableTab($enableTab);
922+
919923
if ($this->getStorage()) {
920924
$openHandlerUrl = route('debugbar.openhandler');
921925
$renderer->setOpenHandlerUrl($openHandlerUrl);

src/Resources/laravel-debugbar-dark-mode.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ div.phpdebugbar-openhandler {
1515
}
1616

1717
div.phpdebugbar,
18+
div.phpdebugbar-widgets-dataset-history .phpdebugbar-widgets-dataset-actions,
1819
div.phpdebugbar-openhandler {
1920
background: var(--color-gray-800);
2021
}
@@ -57,6 +58,7 @@ div.phpdebugbar div.phpdebugbar-header > div > select,
5758
div.phpdebugbar ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item table.phpdebugbar-widgets-params,
5859
div.phpdebugbar-openhandler .phpdebugbar-openhandler-actions > form input,
5960
div.phpdebugbar-openhandler .phpdebugbar-openhandler-actions > form select,
61+
div.phpdebugbar-panel .phpdebugbar-widgets-dataset-actions select,
6062
div.phpdebugbar input[type='text'],
6163
div.phpdebugbar input[type='password'] {
6264
background-color: var(--color-gray-800);
@@ -323,3 +325,8 @@ div.phpdebugbar .hljs-literal,
323325
div.phpdebugbar .hljs-number {
324326
color: #bd93f9;
325327
}
328+
329+
.phpdebugbar-widgets-dataset-history table tr.phpdebugbar-widgets-active {
330+
background-color: var(--color-gray-700);
331+
color: white;
332+
}

src/Resources/laravel-debugbar.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ div.phpdebugbar-mini-design a.phpdebugbar-tab {
772772

773773
div.phpdebugbar-header-right > a {
774774
height: 20px;
775-
width: 20px;
776775
background-position: center;
777776
}
778777

@@ -787,6 +786,10 @@ div.phpdebugbar-panel {
787786
padding: 10px;
788787
}
789788

789+
div.phpdebugbar-panel[data-collector="__datasets"] {
790+
padding: 0 10px;
791+
}
792+
790793
div.phpdebugbar-panel table {
791794
margin: 10px 0px!important;
792795
width: 100%!important;

0 commit comments

Comments
 (0)