Skip to content

Commit f4c1b66

Browse files
topbar
1 parent 0907aee commit f4c1b66

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

resources/css/theme.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ body.expand #topbar .topbar-left .logo span {
421421
}
422422
}
423423
#search {
424-
border-bottom: 1px solid #ddd;
425424
padding-top: 8px;
426425
}
427426
.btn-search {
@@ -451,6 +450,10 @@ color: #ddd;
451450
min-width: 15rem;
452451
}
453452

453+
#Path_21097, #Line_828, #Path_21098 {
454+
fill: {{ setting_value('visiosoft.theme.defaultadmin::primary_color') }} !important;
455+
}
456+
454457
@media (max-width: 767px) {
455458
body.expand #search {
456459
display: none;

resources/img/logout.svg

Lines changed: 10 additions & 0 deletions
Loading

resources/img/no-avatar.svg

Lines changed: 3 additions & 0 deletions
Loading

resources/img/view_site.svg

Lines changed: 9 additions & 0 deletions
Loading

resources/views/partials/topbar.twig

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,22 @@
2121
<button class="btn user-action-dropdown dropdown-toggle none-border">
2222
{{ name|raw }}
2323
</button>
24-
{{ img(user().file).width(47).class('rounded-circle')|raw }}
24+
{% if user().file is not empty %}
25+
{{ img(user().file).width(47).class('rounded-circle')|raw }}
26+
{% else %}
27+
{{ img('theme::img/no-avatar.svg').width(47).class('rounded-circle')|raw }}
28+
{% endif %}
2529
</a>
2630
<ul class="dropdown-menu-right dropdown-menu">
2731
<li class="dropdown-item">
2832
<a href="/" target="_blank">
29-
<i class="fa fa-external-link"></i>
33+
{{ img('theme::img/view_site.svg').data|raw }}
3034
{{ trans('theme::control_panel.view_site') }}
3135
</a>
3236
</li>
3337
<li class="dropdown-item">
3438
<a href="/admin/logout">
35-
<i class="fa fa-power-off"></i>
39+
{{ img('theme::img/logout.svg').data|raw }}
3640
{{ trans('theme::control_panel.logout') }}
3741
</a>
3842
</li>

0 commit comments

Comments
 (0)