mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 23:15:24 +02:00
Fix initials + profile pictures (#2186)
* Improve initials + profile pictures * Change to url_options
This commit is contained in:
parent
17fa5413f6
commit
194dad702d
6 changed files with 18 additions and 8 deletions
|
@ -1,11 +1,11 @@
|
|||
<%# locals: (user:, placement: "right-start", offset: 16) %>
|
||||
|
||||
<div data-testid="user-menu">
|
||||
<%= render MenuComponent.new(variant: "avatar", avatar_url: user.profile_image&.variant(:small)&.url, placement: placement, offset: offset) do |menu| %>
|
||||
<%= render MenuComponent.new(variant: "avatar", avatar_url: user.profile_image&.variant(:small)&.url, initials: user.initials, placement: placement, offset: offset) do |menu| %>
|
||||
<%= menu.with_header do %>
|
||||
<div class="px-4 py-3 flex items-center gap-3">
|
||||
<div class="w-9 h-9 shrink-0">
|
||||
<%= render "settings/user_avatar", avatar_url: user.profile_image&.variant(:small)&.url, lazy: true %>
|
||||
<%= render "settings/user_avatar", avatar_url: user.profile_image&.variant(:small)&.url, initials: user.initials, lazy: true %>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden text-ellipsis text-sm">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue