mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-14 23:45:57 +08:00
Scroll runtime connection error into view
This commit is contained in:
parent
5f2da6f914
commit
7f5917b447
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ defmodule LivebookWeb.SessionLive.RuntimeComponent do
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:if={@error_message && @type == runtime_type(@runtime) && @runtime_status == :disconnected}
|
:if={@error_message && @type == runtime_type(@runtime) && @runtime_status == :disconnected}
|
||||||
class="error-box"
|
id="runtime-connection-error"
|
||||||
|
class="error-box scroll-mt-4"
|
||||||
|
phx-mounted={JS.dispatch("lb:scroll_into_view", detail: %{behavior: "instant"})}
|
||||||
>
|
>
|
||||||
<%= @error_message %>
|
<%= @error_message %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue