File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 4
4
<meta charset =" {{ _charset }}" />
5
5
<meta name =" robots" content =" noindex,nofollow" />
6
6
<meta name =" viewport" content =" width=device-width,initial-scale=1" />
7
+ <meta name =" view-transition" content =" same-origin" >
7
8
<title >{% block title %}Symfony Profiler{% endblock %}</title >
8
9
9
10
{% set request_collector = profile is defined ? profile .collectors .request | default (null ) : null %}
Original file line number Diff line number Diff line change 11
11
12
12
class SymfonyProfiler {
13
13
constructor () {
14
- this .#reorderMainMenuItems ();
15
14
this .#createTabs ();
16
15
this .#createTableSearchFields ();
17
16
this .#createToggles ();
18
17
this .#createCopyToClipboard ();
19
18
this .#convertDateTimesToUserTimezone ();
20
19
}
21
20
22
- #reorderMainMenuItems () {
23
- /* reorder the main menu items to always display first the non-disabled items */
24
- const mainMenuElement = document .querySelector (' #menu-profiler' );
25
- const firstDisabledMenuItem = mainMenuElement .querySelector (' li a > span.disabled' )? .parentNode ? .parentNode ;
26
-
27
- if (! firstDisabledMenuItem) {
28
- return ;
29
- }
30
-
31
- const mainMenuItems = mainMenuElement .querySelectorAll (' li' );
32
- mainMenuItems .forEach (menuItem => {
33
- const isDisabled = null !== menuItem .querySelector (' a > span.disabled' );
34
- if (! isDisabled) {
35
- mainMenuElement .insertBefore (menuItem, firstDisabledMenuItem);
36
- }
37
- });
38
- }
39
-
40
21
#createTabs () {
41
22
/* the accessibility options of this component have been defined according to: */
42
23
/* www.w3.org/WAI/ARIA/apg/example-index/tabs/tabs-manual.html */
Original file line number Diff line number Diff line change @@ -1499,11 +1499,16 @@ tr.status-warning td {
1499
1499
list-style-type: none;
1500
1500
margin: 0;
1501
1501
padding: 7px;
1502
+ display: flex;
1503
+ flex-direction: column;
1502
1504
}
1503
1505
#menu-profiler li {
1504
1506
margin-bottom: 0;
1505
1507
position: relative;
1506
1508
}
1509
+ #menu-profiler li:has(span.disabled) {
1510
+ order: 1;
1511
+ }
1507
1512
#menu-profiler li + li {
1508
1513
margin-top: 4px;
1509
1514
}
You can’t perform that action at this time.
0 commit comments