Fix bug showing invitation popups (#3513)

Apparently using the `<p>` element breaks x-show/styles cascading.
Swapping it with `<div>` renders `x-show` correctly including
children elements.
pull/3170/merge r2023.11.13-244
hq1 3 years ago committed by GitHub
parent f464ceae88
commit c64ab6b6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -455,7 +455,7 @@ defmodule PlausibleWeb.Live.Sites do
x-text="selectedInvitation && selectedInvitation.role"
>Admin</b>.
</p>
<p
<div
x-show="selectedInvitation && selectedInvitation.role === 'owner'"
class="mt-2 text-sm text-gray-500 dark:text-gray-200"
>
@ -472,7 +472,7 @@ defmodule PlausibleWeb.Live.Sites do
<strong>you will have to enter your card details</strong>
to keep using Plausible.
</div>
</p>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save