Skip to content

Commit e5f282e

Browse files
authored
use same logo as ui bundle and remove admin classic route (#1735)
1 parent 4b34c0d commit e5f282e

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

public/css/swagger-ui/index.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ body {
2828
color: #fff;
2929
}
3030

31-
.custom-logo {
32-
width: 24px;
33-
height: 24px;
34-
position: fixed;
35-
bottom: 2px;
36-
right: 2px;
37-
background: url(/bundles/pimcorestudiobackend/img/api-icon.png) center center no-repeat;
38-
background-size: 24px 24px;
31+
.header img {
32+
max-height: 41px;
3933
}

public/img/logo.png

6.19 KB
Loading

templates/swagger-ui/index.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
<body>
1313
<div class="header">
1414
<a style="text-decoration: none;" id="logo" href="#" target="_blank">
15-
<img alt="{{ "Pimcore's logotype"|trans([], 'admin') }}" src="{{ path('pimcore_settings_display_custom_logo', {'white': true}) }}">
15+
<img alt="{{ "Pimcore's logotype"|trans([], 'admin') }}" src="{{ asset('bundles/pimcorestudiobackend/img/logo.png') }}">
1616
</a>
1717
</div>
1818
<div id="swagger-ui" data-url="{{ path('pimcore_studio_api_docs_json', {'locale': locale}) }}" ></div>
1919
<script src="{{ asset('bundles/pimcorestudiobackend/js/swagger-ui/swagger-ui-bundle.js') }}" charset="UTF-8"> </script>
2020
<script src="{{ asset('bundles/pimcorestudiobackend/js/swagger-ui/swagger-ui-standalone-preset.js') }}" charset="UTF-8"> </script>
2121
<script src="{{ asset('bundles/pimcorestudiobackend/js/swagger-ui/swagger-initializer.js') }}" charset="UTF-8"> </script>
22-
<div class="custom-logo"></div>
2322
</body>
2423
</html>

0 commit comments

Comments
 (0)