mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 11:35:54 +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>
|
||||||
|
|
||||||
<.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
|
<.live_component
|
||||||
module={LivebookWeb.SessionLive.SecretsComponent}
|
module={LivebookWeb.SessionLive.SecretsComponent}
|
||||||
id="secrets"
|
id="secrets"
|
||||||
|
|
Loading…
Add table
Reference in a new issue