mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-22 22:05:03 +08:00
Use larger secret modal only when there is secret selection
This commit is contained in:
parent
579415fea4
commit
efc17fb01f
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue