Skip to content

Commit 9be346b

Browse files
committed
Merge branch '3.1'
* 3.1: [WebProfilerBundle] Fix margin on toolbar route panel. Update profiler's layout to use flexbox [Yaml] Remove legacy code
2 parents 2f22905 + 7f0f294 commit 9be346b

File tree

2 files changed

+39
-22
lines changed

2 files changed

+39
-22
lines changed

Resources/views/Profiler/profiler.css.twig

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:1
1717

1818
{# Basic styles
1919
========================================================================= #}
20+
html, body {
21+
height: 100%;
22+
width: 100%;
23+
}
2024
body {
2125
background-color: #F9F9F9;
2226
color: #222;
27+
display: flex;
28+
flex-direction: column;
2329
{{ mixins.sans_serif_font|raw }}
2430
font-size: 14px;
2531
line-height: 1.4;
@@ -405,16 +411,34 @@ tr.status-warning td {
405411
max-width: 1300px;
406412
padding-right: 15px;
407413
}
414+
#header {
415+
flex: 0 0 auto;
416+
}
417+
#header .container {
418+
display: flex;
419+
flex-direction: row;
420+
justify-content: space-between;
421+
}
422+
#summary {
423+
flex: 0 0 auto;
424+
}
408425
#content {
409-
min-height: 1024px;
410-
overflow: hidden;
426+
height: 100%;
427+
}
428+
#main {
429+
display: flex;
430+
flex-direction: row-reverse;
431+
min-height: 100%;
432+
}
433+
#sidebar {
434+
flex: 0 0 220px;
411435
}
412436
#collector-wrapper {
413-
float: left;
414-
width: 100%;
437+
flex: 0 1 100%;
438+
min-width: 0;
415439
}
416440
#collector-content {
417-
margin: 0 0 30px 220px;
441+
margin: 0 0 30px 0;
418442
padding: 14px 0 14px 20px;
419443
}
420444

@@ -432,7 +456,6 @@ tr.status-warning td {
432456
color: #FFF;
433457
font-weight: normal;
434458
font-size: 21px;
435-
float: left;
436459
margin: 0;
437460
padding: 10px 10px 8px;
438461
}
@@ -449,7 +472,6 @@ tr.status-warning td {
449472
fill: #FFF;
450473
}
451474
#header .search {
452-
float: right;
453475
padding-top: 11px;
454476
}
455477
#header .search input {
@@ -519,10 +541,7 @@ tr.status-warning td {
519541
#sidebar {
520542
background: #444;
521543
color: #CCC;
522-
float: left;
523-
margin-bottom: -99999px; {# needed for 'same-height columns' trick #}
524-
margin-left: -100%;
525-
padding-bottom: 99999px; {# needed for 'same-height columns' trick #}
544+
padding-bottom: 30px;
526545
position: relative;
527546
width: 220px;
528547
z-index: 9999;
@@ -605,7 +624,6 @@ tr.status-warning td {
605624
#menu-profiler li {
606625
position: relative;
607626
margin-bottom: 0;
608-
width: 220px;
609627
}
610628
#menu-profiler li a {
611629
border: solid transparent;
@@ -939,17 +957,13 @@ table.logs .sf-call-stack abbr {
939957
}
940958

941959
@media (max-width: 768px) {
942-
#collector-content {
943-
margin-left: 50px;
944-
}
945-
946960
#sidebar {
947-
width: 50px;
948-
overflow-y: hidden;
949-
transition: width 200ms ease-out;
961+
flex-basis: 50px;
962+
overflow-x: hidden;
963+
transition: flex-basis 200ms ease-out;
950964
}
951965
#sidebar:hover, #sidebar.expanded {
952-
width: 220px;
966+
flex-basis: 220px;
953967
}
954968

955969
#sidebar-search {

Resources/views/Profiler/toolbar.css.twig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,11 @@
470470
padding-left: 0;
471471
padding-right: 0;
472472
}
473-
.sf-toolbar-block-request .sf-toolbar-status {
474-
margin-right: 5px;
473+
.sf-toolbar-block-request .sf-toolbar-label {
474+
margin-left: 5px;
475+
}
476+
.sf-toolbar-block-request .sf-toolbar-status + svg {
477+
margin-left: 5px;
475478
}
476479
.sf-toolbar-block-request .sf-toolbar-icon svg + .sf-toolbar-label {
477480
margin-left: 0;

0 commit comments

Comments
 (0)