Skip to content

Commit cbdda42

Browse files
committed
Show empty stream message using :last-child pseudoselector
1 parent a5d7aa7 commit cbdda42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/live_cal_web/components/core_components.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ defmodule LiveCalWeb.CoreComponents do
510510
phx-update={match?(%Phoenix.LiveView.LiveStream{}, @rows) && "stream"}
511511
class="relative divide-y divide-zinc-100 border-t border-zinc-200 text-sm leading-6 text-zinc-700"
512512
>
513+
<tr class="hidden last:table-row"><td>No Streamed Items</td></tr>
513514
<tr :for={row <- @rows} id={@row_id && @row_id.(row)} class="group hover:bg-zinc-50" data-visibility={if Map.has_key?(elem(row, 1), :visibility), do: elem(row, 1).visibility}>
514515
<td
515516
:for={{col, i} <- Enum.with_index(@col)}

0 commit comments

Comments
 (0)