mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-03 18:35:41 +08:00
Add autofocus to import inputs (#240)
This commit is contained in:
parent
6f60e075a0
commit
c3a0b7c01d
2 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ defmodule LivebookWeb.HomeLive.ImportContentComponent do
|
|||
autocomplete: "off" %>
|
||||
<%= textarea f, :content, value: @content, class: "input resize-none",
|
||||
placeholder: "Notebook content",
|
||||
autofocus: true,
|
||||
spellcheck: "false",
|
||||
rows: 5 %>
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ defmodule LivebookWeb.HomeLive.ImportUrlComponent do
|
|||
autocomplete: "off" %>
|
||||
<%= text_input f, :url, value: @url, class: "input",
|
||||
placeholder: "Notebook URL",
|
||||
autofocus: true,
|
||||
spellcheck: "false" %>
|
||||
<%= submit "Import",
|
||||
class: "mt-5 button button-blue",
|
||||
|
|
Loading…
Reference in a new issue