Skip to content

Commit

Permalink
feat: Add z-index to drink breakdown list for improved visibility on …
Browse files Browse the repository at this point in the history
…hover
  • Loading branch information
drikusroor committed Oct 10, 2024
1 parent e9e76d1 commit 1a1ef36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drinks/templates/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ <h2 class="text-xl font-semibold mb-4">Drinks per User</h2>
<span>{% user_display_name item %}</span>
<span class="font-bold">{{ item.total_drinks }}</span>

<ul class="space-y-1 absolute right-1 p-2 bg-blue-700 text-white rounded-lg drop-shadow hidden group-hover:block">
<ul class="space-y-1 absolute z-10 right-1 p-2 bg-blue-700 text-white rounded-lg drop-shadow hidden group-hover:block">
<li class="font-semibold">Drinks Breakdown</li>
{% for drink in item.drink_breakdown %}
<li class="flex items-center gap-2 z-10">
<li class="flex items-center gap-2">
{% if drink.image %}
{% image drink.image fill-32x32-c100 alt=drink.name class="rounded-full" %}
{% else %}
Expand Down

0 comments on commit 1a1ef36

Please sign in to comment.