Skip to content

Commit 9347b95

Browse files
committed
Add title to variable keys
So we can show them on hover. Not the best solution, but at least an easy fix to show the truncated text.
1 parent 2fde835 commit 9347b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DebugBar/Resources/widgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
194194
className: csscls('kvlist varlist'),
195195

196196
itemRenderer: function(dt, dd, key, value) {
197-
dt.text(key);
197+
$('<span />').attr('title', key).text(key).appendTo(dt);
198198

199199
var v = value;
200200
if (v && v.length > 100) {

0 commit comments

Comments
 (0)