Expand usage of structured_modal/1

This commit is contained in:
Claudio Ortolina
2025-08-27 09:11:11 +03:00
parent e6955568e3
commit cd9176e397
8 changed files with 22 additions and 54 deletions
@@ -99,12 +99,9 @@
</ul>
</div>
<.modal
<.structured_modal
:if={@live_action in [:new, :edit]}
id="scrobble_rule-modal"
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
placement="top"
open
on_close={JS.patch(~p"/scrobble-rules")}
>
<.live_component
@@ -115,4 +112,4 @@
scrobble_rule={@scrobble_rule}
patch={~p"/scrobble-rules"}
/>
</.modal>
</.structured_modal>