8000 [WebProfilerBundle] Showed all ajax calls in toolbar · symfony/symfony@513d2d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 513d2d3

Browse files
committed
[WebProfilerBundle] Showed all ajax calls in toolbar
1 parent b5c4d54 commit 513d2d3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
var rows = document.createDocumentFragment();
8484
8585
if (requestStack.length) {
86-
var firstItem = requestStack.length > 20 ? requestStack.length - 20 : 0;
87-
for (var i = firstItem; i < requestStack.length; i++) {
86+
for (var i = 0; i < requestStack.length; i++) {
8887
var request = requestStack[i];
8988
9089
var row = document.createElement('tr');
@@ -145,7 +144,7 @@
145144
tbody.appendChild(rows);
146145
147146
if (infoSpan) {
148-
var text = firstItem == 0 ? requestStack.length + ' calls' : 'Last 20 calls out of ' + requestStack.length;
147+
var text = requestStack.length + ' calls';
149148
infoSpan.textContent = text;
150149
}
151150
} else {

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@
281281
box-sizing: border-box;
282282
padding: 9px;
283283
line-height: 19px;
284+
285+
max-width: 480px;
286+
max-height: 480px;
287+
word-wrap: break-word;
288+
overflow: hidden;
289+
overflow-y: scroll;
284290
}
285291

286292
table.sf-toolbar-ajax-requests {

0 commit comments

Comments
 (0)
0