Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/unfold/templates/unfold/helpers/navigation_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@

<div class="cursor-pointer flex flex-row gap-3 items-center min-h-[64px] -mx-6 -my-3 px-6 py-3 hover:bg-base-100 dark:hover:bg-base-800" x-on:click="openUserLinks = !openUserLinks" x-bind:class="{'bg-base-100 dark:bg-base-800': openUserLinks}">
{% with avatar_url=request.user.avatar_url %}
<div class="bg-white bg-cover h-[38px] flex items-center justify-center rounded-default select-none shadow w-[38px] dark:bg-base-700" {% if avatar_url %}style="background-image: url('{{ avatar_url }}');"{% endif %}>
<div class="bg-white bg-cover h-[38px] flex items-center justify-center rounded-default select-none shadow min-w-[38px] w-[38px] dark:bg-base-700" {% if avatar_url %}style="background-image: url('{{ avatar_url }}');"{% endif %}>
{% if not avatar_url %}
<span class="material-symbols-outlined text-base-400">person</span>
{% endif %}
</div>
{% endwith %}

<div class="flex flex-col gap-1.5 select-none">
<div class="font-semibold leading-none text-important tracking-tight">
<div class="flex flex-col select-none min-w-0">
<div class="font-semibold text-important tracking-tight truncate">
{{ user.get_full_name|default:user.username }}
</div>

{% if user.email %}
<div class="font-normal leading-none text-subtle text-xs">{{ user.email }}</div>
<div class="font-normal text-subtle text-xs truncate">
{{ user.email }}
</div>
{% endif %}
</div>

Expand Down