Skip to content

Commit

Permalink
Remove vcard header
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Dec 2, 2024
1 parent 931682a commit cec16c7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 38 deletions.
16 changes: 3 additions & 13 deletions resources/sass/components/_vcard.scss
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
#vcard {
padding: 5px;
padding: 2px;
position: absolute;
box-shadow: 0 3px 9px #444;
z-index: 3;
background-color: $gray-dark;
border-radius: $border-radius;
}

#vcard-header {
background-color: $gray;
color: #fff;
font-size: $font-size-base;
padding: 3px 0 3px 16px;

a {
color: inherit;
}
border-radius: 6px;
}

#vcard-content {
background-color: #fff;
padding: 15px;
border-radius: 4px;

.list-inline {
color: $gray-light;
Expand Down
4 changes: 0 additions & 4 deletions resources/sass/core/_dark_topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,6 @@ body.theme-dark {
padding: 0;
background-color: #101010;

#vcard-header {
background-color: #101010;
}

#vcard-content {
background-color: #101010;

Expand Down
37 changes: 16 additions & 21 deletions resources/views/components/vcard.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@
{% set created_at = user.created_at|format_date %}

<div id="vcard">
<div id="vcard-header">
{{ user.name }}
</div>

<div id="vcard-content">
<div class="media">
<div class="me-2 d-flex flex-column">
<div class="position-relative img-thumbnail">
<div class="vcard-avatar" style="width:55px; height:55px;">
{{ user_avatar(user.photo, user.name) }}
<div class="mb-2">
<strong>{{ user.name }}</strong>
</div>
<div>
<div class="d-inline-block">
<div class="position-relative img-thumbnail">
<div class="vcard-avatar" style="width:55px; height:55px;">
{{ user_avatar(user.photo, user.name) }}
</div>
{% if user.is_online %}
<div class="is-online"></div>
{% endif %}
</div>
</div>
{% if user.is_online %}
<div class="is-online"></div>
{% endif %}
</div>
</div>

<div class="media-body">
<ul class="list-inline border-bottom text-truncate mb-2">
<div class="media-body ms-4">
<ul class="list-inline border-bottom text-truncate mb-3">
<li class="list-inline-item" title="Ostatnia wizyta: {{ visited_at }}">
{{ icon('vCardLastVisitDate') }}
{{ visited_at }}
Expand Down Expand Up @@ -72,17 +75,9 @@
<a href="{{ route('forum.user', [user.id]) }}" title="Znajdź posty użytkownika" class="btn btn-sm btn-secondary me-1">
{{ icon('vCardUserFindPosts') }}
</a>
<a href="{{ route('user.pm.submit', {to: user.name}) }}" title="Napisz wiadomość do tego użytkownika" class="btn btn-sm btn-secondary">
<a href="{{ route('user.pm.submit', {to: user.name}) }}" title="Napisz wiadomość do tego użytkownika" class="btn btn-sm btn-secondary me-1">
{{ icon('vCardUserPrivateMessage') }}
</a>
{% if can('adm-access') %}
<a href="{{ route('adm.firewall.save') }}?user={{ user.id }}" title="Zbanuj tego użytkownika" class="btn btn-sm btn-secondary float-end ms-1">
{{ icon('vCardUserBlock') }}
</a>
<a href="{{ route('adm.users.show', [user.id]) }}" title="Pokaż w panelu administracyjnym" class="btn btn-sm btn-secondary float-end">
{{ icon('vCardUserShowInAdmin') }}
</a>
{% endif %}
</div>
</div>
</div>

0 comments on commit cec16c7

Please sign in to comment.