ソースを参照

Merge pull request #2244 from net02/patch-3

issues on dashboard title and logo
Thomas 11 年 前
コミット
9cc621e887

+ 2 - 1
Resources/public/css/styles.css

@@ -43,8 +43,9 @@ body > .header .logo {
     display: inline-block;
     line-height: 1;
     vertical-align: middle;
-    width: 140px;
+    width: 200px;
 }
+.logo img + span { width: 140px; }
 
 .open > .dropdown-menu {
     animation-duration: .3s;

+ 3 - 1
Resources/views/standard_layout.html.twig

@@ -78,14 +78,16 @@ file that was distributed with this source code.
         {% block sonata_header %}
             <header class="header">
                 {% block logo %}
+                    {% spaceless %}
                     <a class="logo" href="{{ url('sonata_admin_dashboard') }}">
                         {% if 'single_image' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
-                            <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">{% if 'both' == admin_pool.getOption('title_mode') %}&nbsp;{% endif %}
+                            <img src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">
                         {% endif %}
                         {% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}
                             <span>{{ admin_pool.title }}</span>
                         {% endif %}
                     </a>
+                    {% endspaceless %}
                 {% endblock %}
                 {% block sonata_nav %}
                     {% if admin_pool is defined %}