Skip to content

Commit 8c22de4

Browse files
committed
minor symfony#20702 [WebProfilerBundle] Fix vertical alignment for profiler open action (ogizanagi)
This PR was merged into the 3.2 branch. Discussion ---------- [WebProfilerBundle] Fix vertical alignment for profiler open action | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no, style enhancement | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A ### Before ![capture d ecran 2016-11-30 a 16 27 14](https://cloud.githubusercontent.com/assets/2211145/20758585/9d9f73ea-b71a-11e6-90d1-75651c22dee6.png) ![capture d ecran 2016-11-30 a 16 27 34](https://cloud.githubusercontent.com/assets/2211145/20758586/9da03596-b71a-11e6-975c-470ef2ca89e5.png) ### After ![capture d ecran 2016-11-30 a 16 26 48](https://cloud.githubusercontent.com/assets/2211145/20758606/a83e4dbc-b71a-11e6-82ea-35b8347ccdef.png) ![capture d ecran 2016-11-30 a 16 27 54](https://cloud.githubusercontent.com/assets/2211145/20758605/a83b2470-b71a-11e6-986c-1ab593a989ea.png) Commits ------- 44a0ef1 [WebProfilerBundle] Fix vertical alignment for profiler open action
2 parents 2e780b6 + 44a0ef1 commit 8c22de4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,23 @@ body {
3131
background-color: #222;
3232
position: fixed;
3333
top: 0;
34+
display: flex;
3435
width: 100%;
3536
}
3637
.header h1 {
37-
float: left;
3838
color: #FFF;
3939
font-weight: normal;
4040
font-size: 21px;
4141
margin: 0;
4242
padding: 10px 10px 8px;
43+
word-break: break-all;
4344
}
4445

4546
a.doc {
46-
float: right;
4747
color: #FFF;
4848
text-decoration: none;
49+
margin: auto;
50+
margin-right: 10px;
4951
}
5052

5153
a.doc:hover {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
{% block body %}
1010
<div class="header">
11-
<a class="doc" href="https://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}/reference/configuration/framework.html#ide" rel="help">Open in your IDE?</a>
1211
<h1>{{ file }} <small>line {{ line }}</small></h1>
12+
<a class="doc" href="https://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}/reference/configuration/framework.html#ide" rel="help">Open in your IDE?</a>
1313
</div>
1414
<div class="source">
1515
{{ filename|file_excerpt(line, -1) }}

0 commit comments

Comments
 (0)