Add "Unite with next" button
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
<.breakpoint_indicator :if={Mix.env == :dev} />
|
||||
<.dark_mode_widget />
|
||||
</header>
|
||||
<main class="px-4 py-20 sm:px-6 lg:px-8">
|
||||
<div class="mx-auto max-w-4xl">
|
||||
<main class="px-4 sm:px-6 lg:px-8 lg:mx-auto h-screen">
|
||||
<div class="mx-auto max-w-4xl h-fit">
|
||||
<.flash kind={:info} title="Success!" flash={@flash} />
|
||||
<.flash kind={:error} title="Error!" flash={@flash} />
|
||||
<.flash
|
||||
|
||||
@ -9,12 +9,12 @@ defmodule OutlookWeb.TunitEditorComponent do
|
||||
|
||||
def tunit_editor(assigns) do
|
||||
~H"""
|
||||
<div id="translation-unit-editor" phx-nohook="tunit_editor">
|
||||
<div id="translation-unit-editor" phx-no-hook="tunit_editor" phx-target={@target}>
|
||||
<%!-- <div class="h-48 p-2 border border-slate-500 rounded" contenteditable phx-no-change="update_current_tunit">
|
||||
<%= @current_tunit.content |> raw %>
|
||||
</div> --%>
|
||||
<form phx-change="update_current_tunit" phx-target={@target}>
|
||||
<textarea id="tunit-editor-content" name="content" class="h-48 rounded border-slate-500 resize-none bg-transparent w-full"
|
||||
<textarea id="tunit-editor-content" name="content" class="h-96 rounded border-slate-500 resize-none bg-transparent w-full"
|
||||
disabled={!@current_tunit.status}><%= @current_tunit.content %></textarea>
|
||||
</form>
|
||||
<.status_selector target={@target} disabled={!@current_tunit.status} tunit={@current_tunit} />
|
||||
@ -24,7 +24,7 @@ defmodule OutlookWeb.TunitEditorComponent do
|
||||
|
||||
defp statuses() do
|
||||
[ {:untranslated, "bg-red-800"},
|
||||
{:passable, "bg-amber-500"},
|
||||
{:passable, "bg-amber-500/70"},
|
||||
{:done, "bg-green-700"} ]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user