Noah Settersten commited on
Commit ·
c6ea04f
1
Parent(s): 8aae8fe
fix: Display of streaming results in list
Browse files
lib/medical_transcription_web/components/components.ex
CHANGED
|
@@ -36,9 +36,13 @@ defmodule MedicalTranscriptionWeb.Components do
|
|
| 36 |
|
| 37 |
def result_list(assigns) do
|
| 38 |
~H"""
|
| 39 |
-
<div
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
<div class="flex-1 flex flex-col gap-4">
|
| 43 |
<p class="text-[32px] leading-normal font-semibold">
|
| 44 |
<%= row.start_mark %> - <%= row.end_mark %>
|
|
|
|
| 36 |
|
| 37 |
def result_list(assigns) do
|
| 38 |
~H"""
|
| 39 |
+
<div
|
| 40 |
+
id="result_list"
|
| 41 |
+
class="flex flex-col gap-14"
|
| 42 |
+
phx-update={match?(%Phoenix.LiveView.LiveStream{}, @rows) && "stream"}
|
| 43 |
+
>
|
| 44 |
+
<%= for {dom_id, row} <- @rows do %>
|
| 45 |
+
<div id={dom_id} class="flex gap-12 pb-10 border-b border-[#444444]/20">
|
| 46 |
<div class="flex-1 flex flex-col gap-4">
|
| 47 |
<p class="text-[32px] leading-normal font-semibold">
|
| 48 |
<%= row.start_mark %> - <%= row.end_mark %>
|