mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-25 23:52:31 +08:00
Widen the inputs for the authentication screen (#1572)
This commit is contained in:
parent
00a7201f8a
commit
c6fcad2099
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@
|
|||
<form method="post" class="flex flex-col space-y-4 items-center">
|
||||
<input type="hidden" value="<%= Phoenix.Controller.get_csrf_token() %>" name="_csrf_token"/>
|
||||
<%= if @auth_mode == :password do %>
|
||||
<div phx-feedback-for="password" class="<%= if(@errors, do: "show-errors", else: "") %>">
|
||||
<div phx-feedback-for="password" class="<%= if(@errors, do: "show-errors w-[20ch]", else: "w-[20ch]") %>">
|
||||
<input type="password" name="password" class="input" placeholder="Password" autofocus />
|
||||
<% else %>
|
||||
<div phx-feedback-for="token" class="<%= if(@errors, do: "show-errors", else: "") %>">
|
||||
<div phx-feedback-for="token" class="<%= if(@errors, do: "show-errors w-[20ch]", else: "w-[20ch]") %>">
|
||||
<input type="text" name="token" class="input" placeholder="Token" autofocus />
|
||||
<% end %>
|
||||
<%= for error <- @errors || [] do %>
|
||||
|
|
Loading…
Reference in a new issue