From cec16c7f5569df249f4dc06d1db0b214e44dacf5 Mon Sep 17 00:00:00 2001 From: Daniel Wilkowski Date: Mon, 2 Dec 2024 11:32:38 +0100 Subject: [PATCH] Remove vcard header --- resources/sass/components/_vcard.scss | 16 +++--------- resources/sass/core/_dark_topic.scss | 4 --- resources/views/components/vcard.twig | 37 ++++++++++++--------------- 3 files changed, 19 insertions(+), 38 deletions(-) diff --git a/resources/sass/components/_vcard.scss b/resources/sass/components/_vcard.scss index dfd071e4b3..fbaba2c220 100644 --- a/resources/sass/components/_vcard.scss +++ b/resources/sass/components/_vcard.scss @@ -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; diff --git a/resources/sass/core/_dark_topic.scss b/resources/sass/core/_dark_topic.scss index d0c9bc2547..2bbfd892d9 100644 --- a/resources/sass/core/_dark_topic.scss +++ b/resources/sass/core/_dark_topic.scss @@ -451,10 +451,6 @@ body.theme-dark { padding: 0; background-color: #101010; - #vcard-header { - background-color: #101010; - } - #vcard-content { background-color: #101010; diff --git a/resources/views/components/vcard.twig b/resources/views/components/vcard.twig index 9d174f8f07..a33db2beb7 100644 --- a/resources/views/components/vcard.twig +++ b/resources/views/components/vcard.twig @@ -2,25 +2,28 @@ {% set created_at = user.created_at|format_date %}
-
- {{ user.name }} -
-
-
-
- {{ user_avatar(user.photo, user.name) }} +
+ {{ user.name }} +
+
+
+
+
+ {{ user_avatar(user.photo, user.name) }} +
+ {% if user.is_online %} +
+ {% endif %} +
- {% if user.is_online %} -
- {% endif %}
-
-