Skip to content

Commit f2b5a2d

Browse files
committed
Fix z-index issue with dropdowns on sites page
1 parent d5d4ba7 commit f2b5a2d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/plausible_web/components/prima_dropdown.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule PlausibleWeb.Components.PrimaDropdown do
3333
<Dropdown.dropdown_item
3434
as={@as}
3535
disabled={@disabled}
36-
class="group/item flex items-center gap-x-2 rounded-md px-4 py-2 text-gray-700 text-sm dark:text-gray-300 data-focus:bg-gray-100 dark:data-focus:bg-gray-700 data-focus:text-gray-900 dark:data-focus:text-gray-100"
36+
class="group/item z-50 flex items-center gap-x-2 min-w-max rounded-md px-4 py-2 text-gray-700 text-sm dark:text-gray-300 data-focus:bg-gray-100 dark:data-focus:bg-gray-700 data-focus:text-gray-900 dark:data-focus:text-gray-100"
3737
{@rest}
3838
>
3939
{render_slot(@inner_block)}

lib/plausible_web/live/sites.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ defmodule PlausibleWeb.Live.Sites do
8787
8888
<PlausibleWeb.Team.Notice.team_invitations team_invitations={@team_invitations} />
8989
90-
<div class="pt-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-y-2">
90+
<div class="relative z-10 pt-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-y-2">
9191
<.search_form :if={@has_sites?} filter_text={@filter_text} uri={@uri} />
9292
<p :if={not @has_sites?} class="dark:text-gray-100">
9393
You don't have any sites yet.
@@ -97,7 +97,6 @@ defmodule PlausibleWeb.Live.Sites do
9797
<!-- any stacking context issues. TODO -->
9898
<PrimaDropdown.dropdown
9999
:if={@consolidated_view_cta_dismissed?}
100-
class="z-[49]"
101100
id="add-site-dropdown"
102101
>
103102
<PrimaDropdown.dropdown_trigger as={&button/1} mt?={false}>

0 commit comments

Comments
 (0)