diff --git a/src/Resources/queries/widget.js b/src/Resources/queries/widget.js
index 5b118700..de874631 100644
--- a/src/Resources/queries/widget.js
+++ b/src/Resources/queries/widget.js
@@ -229,9 +229,11 @@
.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')),
+ duplicated = this.duplicateQueries.has(statement);
$li.attr('data-connection', statement.connection)
- .attr('data-duplicate', this.duplicateQueries.has(statement))
+ .attr('data-duplicate', duplicated)
+ .toggleClass(csscls('sql-duplicate'), duplicated)
.append($code);
if (statement.show_copy) {