feat: improve sidebar handling
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
16ca4efc03
commit
aba8737c38
6 changed files with 93 additions and 15 deletions
|
|
@ -143,7 +143,7 @@ defmodule MvWeb.Layouts.Sidebar do
|
|||
<button
|
||||
type="button"
|
||||
tabindex="0"
|
||||
class="flex items-center justify-center w-full p-2 rounded-lg hover:bg-base-300 tooltip tooltip-right focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"
|
||||
class="flex items-center w-full p-2 rounded-lg hover:bg-base-300 tooltip tooltip-right focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"
|
||||
data-tip={@label}
|
||||
aria-haspopup="menu"
|
||||
aria-label={@label}
|
||||
|
|
@ -251,18 +251,18 @@ defmodule MvWeb.Layouts.Sidebar do
|
|||
assigns = assign(assigns, :user_id, user_id)
|
||||
|
||||
~H"""
|
||||
<div class="dropdown dropdown-top dropdown-right w-full">
|
||||
<div class="dropdown dropdown-top dropdown-end w-full">
|
||||
<button
|
||||
type="button"
|
||||
tabindex="0"
|
||||
class="btn btn-ghost w-full justify-start gap-3 px-4 h-12 min-h-12 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"
|
||||
class="user-menu-button flex items-center w-full justify-start gap-3 px-4 h-12 min-h-12 rounded-lg cursor-pointer focus:outline-none"
|
||||
aria-label={gettext("User menu")}
|
||||
aria-haspopup="menu"
|
||||
>
|
||||
<!-- Avatar: Zentriert, erste Buchstabe -->
|
||||
<!-- Avatar: Placeholder with first letter -->
|
||||
<div class="avatar placeholder shrink-0">
|
||||
<div class="w-8 h-8 rounded-full bg-neutral text-neutral-content flex items-center justify-center">
|
||||
<span class="text-sm font-semibold leading-none flex items-center justify-center" style="margin-top: 1px;">
|
||||
<div class="w-8 h-8 rounded-full bg-neutral text-neutral-content">
|
||||
<span class="text-sm font-semibold">
|
||||
{@first_letter}
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue