Use larger secret modal only when there is secret selection

This commit is contained in:
Jonatan Kłosko 2024-02-12 00:11:16 +07:00
parent 579415fea4
commit efc17fb01f

View file

@ -241,7 +241,13 @@ defmodule LivebookWeb.SessionLive.Render do
) %>
</.modal>
<.modal :if={@live_action == :secrets} id="secrets-modal" show width={:medium} patch={@self_path}>
<.modal
:if={@live_action == :secrets}
id="secrets-modal"
show
width={if(@select_secret_ref, do: :large, else: :medium)}
patch={@self_path}
>
<.live_component
module={LivebookWeb.SessionLive.SecretsComponent}
id="secrets"