diff --git a/src/Resources/laravel-debugbar.css b/src/Resources/laravel-debugbar.css
index 714c4aff..ac3245fb 100644
--- a/src/Resources/laravel-debugbar.css
+++ b/src/Resources/laravel-debugbar.css
@@ -571,11 +571,6 @@ ul.phpdebugbar-widgets-timeline li:hover {
background-color: initial;
}
-.phpdebugbar-widgets-sqlqueries ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item {
- display: flex;
- flex-wrap: wrap;
-}
-
.phpdebugbar-widgets-templates ul.phpdebugbar-widgets-list li.phpdebugbar-widgets-list-item {
display: block;
}
@@ -930,6 +925,10 @@ pre.phpdebugbar-widgets-code-block ul.phpdebugbar-widgets-numbered-code li {
height: 2px !important;
}
+div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-copy-clipboard {
+ margin-left: 8px !important;
+}
+
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params td.phpdebugbar-widgets-name {
width: 150px;
}
diff --git a/src/Resources/queries/widget.js b/src/Resources/queries/widget.js
index 5ea9ed5c..b60b44f5 100644
--- a/src/Resources/queries/widget.js
+++ b/src/Resources/queries/widget.js
@@ -229,7 +229,7 @@
.attr('data-duplicate', false)
.append($('').addClass(csscls('sql name')).text(statement.sql));
} else {
- const $code = $('').html(PhpDebugBar.Widgets.highlight(statement.sql, 'sql')).addClass(csscls('sql'));
+ const $code = $('
').html(PhpDebugBar.Widgets.highlight(statement.sql, 'sql')).addClass(csscls('sql'));
$li.attr('data-connection', statement.connection)
.attr('data-duplicate', this.duplicateQueries.has(statement))
.append($code);
@@ -246,7 +246,7 @@
$(event.target).removeClass(csscls('copy-clipboard-check'));
}, 2000)
}
- }).appendTo($li);
+ }).prependTo($li);
}
}
@@ -260,16 +260,16 @@
}
if ('is_success' in statement && !statement.is_success) {
- $li.addClass(csscls('error')).append($('').addClass(csscls('error')).text(`[${statement.error_code}] ${statement.error_message}`));
+ $li.addClass(csscls('error')).prepend($('').addClass(csscls('error')).text(`[${statement.error_code}] ${statement.error_message}`));
}
if (statement.duration_str) {
- $li.append($('').addClass(csscls('duration')).text(statement.duration_str));
+ $li.prepend($('').addClass(csscls('duration')).text(statement.duration_str));
}
if (statement.memory_str) {
- $li.append($('').addClass(csscls('memory')).text(statement.memory_str));
+ $li.prepend($('').addClass(csscls('memory')).text(statement.memory_str));
}
if (statement.connection) {
- $li.append($('').addClass(csscls('database')).text(statement.connection));
+ $li.prepend($('').addClass(csscls('database')).text(statement.connection));
}
if (statement.xdebug_link) {
$('')
@@ -285,7 +285,7 @@
fetch(statement.xdebug_link.url);
}
})
- ).appendTo($li);
+ ).prependTo($li);
}
const $details = $('