noahsettersten
commited on
Commit
•
9d78425
1
Parent(s):
c770ab7
chore: Align transcription loading state with loaded
Browse files
lib/medical_transcription_web/components/transcription_text_component.ex
CHANGED
@@ -45,27 +45,27 @@ defmodule MedicalTranscriptionWeb.Components.TranscriptionTextComponent do
|
|
45 |
@impl Phoenix.LiveComponent
|
46 |
def render(assigns) do
|
47 |
# TODO: Adjust the blue border when editing
|
48 |
-
# TODO: Style the loading state to the same as the loaded state
|
49 |
# TODO: Add back the phx-blur="reclassify_transcription"
|
50 |
|
51 |
~H"""
|
52 |
<div class="flex gap-12 pb-10 border-b border-[#444444]/20">
|
53 |
<div class="flex-1 flex flex-col gap-4">
|
54 |
-
<p class="text-[32px] leading-normal font-semibold">
|
55 |
<%= if !is_nil(@start_mark) && !is_nil(@end_mark) do %>
|
56 |
<%= @start_mark %> - <%= @end_mark %>
|
57 |
<% else %>
|
58 |
Full Transcription
|
59 |
<% end %>
|
60 |
</p>
|
61 |
-
<div class="flex-1 text-[28px] leading-normal text-type-black-tertiary">
|
62 |
<.async_result :let={keywords} assign={@keywords}>
|
63 |
-
<:loading
|
|
|
|
|
64 |
<p
|
65 |
contenteditable
|
66 |
-
|
67 |
-
|
68 |
-
rounded-lg h-full min-h-full "
|
69 |
phx-target={@myself}
|
70 |
>
|
71 |
<.highlight text={@text} keywords={keywords} />
|
|
|
45 |
@impl Phoenix.LiveComponent
|
46 |
def render(assigns) do
|
47 |
# TODO: Adjust the blue border when editing
|
|
|
48 |
# TODO: Add back the phx-blur="reclassify_transcription"
|
49 |
|
50 |
~H"""
|
51 |
<div class="flex gap-12 pb-10 border-b border-[#444444]/20">
|
52 |
<div class="flex-1 flex flex-col gap-4">
|
53 |
+
<p class="px-2 text-[32px] leading-normal font-semibold">
|
54 |
<%= if !is_nil(@start_mark) && !is_nil(@end_mark) do %>
|
55 |
<%= @start_mark %> - <%= @end_mark %>
|
56 |
<% else %>
|
57 |
Full Transcription
|
58 |
<% end %>
|
59 |
</p>
|
60 |
+
<div class="flex-1 w-full text-[28px] leading-normal text-type-black-tertiary">
|
61 |
<.async_result :let={keywords} assign={@keywords}>
|
62 |
+
<:loading>
|
63 |
+
<p class="h-full min-h-full rounded p-2"><%= @text %></p>
|
64 |
+
</:loading>
|
65 |
<p
|
66 |
contenteditable
|
67 |
+
role="textbox"
|
68 |
+
class="h-full min-h-full rounded p-2"
|
|
|
69 |
phx-target={@myself}
|
70 |
>
|
71 |
<.highlight text={@text} keywords={keywords} />
|