diff --git a/src/DebugBar/Resources/widgets/sqlqueries/widget.css b/src/DebugBar/Resources/widgets/sqlqueries/widget.css index 8de46d7..6ca25d3 100644 --- a/src/DebugBar/Resources/widgets/sqlqueries/widget.css +++ b/src/DebugBar/Resources/widgets/sqlqueries/widget.css @@ -107,8 +107,8 @@ div.phpdebugbar-widgets-sqlqueries div.phpdebugbar-widgets-toolbar { display:none; position: fixed; bottom: 0; - width: 100%; - background: #fff; + width: calc(100% - 30px); + margin-bottom: 5px; z-index: 1; } diff --git a/src/DebugBar/Resources/widgets/sqlqueries/widget.js b/src/DebugBar/Resources/widgets/sqlqueries/widget.js index 1aee3a4..0c7c8f5 100644 --- a/src/DebugBar/Resources/widgets/sqlqueries/widget.js +++ b/src/DebugBar/Resources/widgets/sqlqueries/widget.js @@ -14,15 +14,7 @@ onFilterClick: function(el) { $(el).toggleClass(csscls('excluded')); - - var excludedLabels = []; - this.$toolbar.find(csscls('.filter') + csscls('.excluded')).each(function() { - excludedLabels.push(this.rel); - }); - this.$list.$el.find("li[connection=" + $(el).attr("rel") + "]").toggle(); - - this.set('exclude', excludedLabels); }, onCopyToClipboard: function (el) { var code = $(el).parent('li').find('code').get(0); @@ -179,6 +171,8 @@ if (data.length <= 0 || !data.statements) { return false; } + filters = []; + this.$toolbar.hide().find(csscls('.filter')).remove(); this.$list.set('data', data.statements); this.$status.empty();