Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29a271b

Browse files
javiereguiluzfabpot
authored andcommitted
[WebProfilerBundle] Improve performance
1 parent9b323c6 commit29a271b

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base.html.twig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<metacharset="{{_charset }}" />
55
<metaname="robots"content="noindex,nofollow" />
66
<metaname="viewport"content="width=device-width,initial-scale=1" />
7+
<metaname="view-transition"content="same-origin">
78
<title>{%blocktitle %}Symfony Profiler{%endblock %}</title>
89

910
{%setrequest_collector=profileisdefined?profile.collectors.request|default(null):null %}

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,13 @@
1111
1212
classSymfonyProfiler {
1313
constructor() {
14-
this.#reorderMainMenuItems();
1514
this.#createTabs();
1615
this.#createTableSearchFields();
1716
this.#createToggles();
1817
this.#createCopyToClipboard();
1918
this.#convertDateTimesToUserTimezone();
2019
}
2120
22-
#reorderMainMenuItems() {
23-
/* reorder the main menu items to always display first the non-disabled items*/
24-
constmainMenuElement=document.querySelector('#menu-profiler');
25-
constfirstDisabledMenuItem=mainMenuElement.querySelector('li a > span.disabled')?.parentNode?.parentNode;
26-
27-
if (!firstDisabledMenuItem) {
28-
return;
29-
}
30-
31-
constmainMenuItems=mainMenuElement.querySelectorAll('li');
32-
mainMenuItems.forEach(menuItem=> {
33-
constisDisabled=null!==menuItem.querySelector('a > span.disabled');
34-
if (!isDisabled) {
35-
mainMenuElement.insertBefore(menuItem, firstDisabledMenuItem);
36-
}
37-
});
38-
}
39-
4021
#createTabs() {
4122
/* the accessibility options of this component have been defined according to:*/
4223
/* www.w3.org/WAI/ARIA/apg/example-index/tabs/tabs-manual.html*/

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,11 +1499,16 @@ tr.status-warning td {
14991499
list-style-type: none;
15001500
margin: 0;
15011501
padding: 7px;
1502+
display: flex;
1503+
flex-direction: column;
15021504
}
15031505
#menu-profiler li {
15041506
margin-bottom: 0;
15051507
position: relative;
15061508
}
1509+
#menu-profiler li:has(span.disabled) {
1510+
order: 1;
1511+
}
15071512
#menu-profiler li + li {
15081513
margin-top: 4px;
15091514
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp