Update the table's padding for Publisher and Servers LiveViews.

dev
KKlochko 2 months ago
parent c0f55e235e
commit 7a6d594ea7

@ -13,6 +13,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Index do
</:actions>
</.header>
<div class="pt-2">
<.table
id="dbi_servers"
rows={@streams.dbi_servers}
@ -39,6 +40,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Index do
</.link>
</:action>
</.table>
</div>
<.modal
:if={@live_action in [:new, :edit]}

@ -13,13 +13,12 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Index do
</:actions>
</.header>
<div class="pt-2">
<.table
id="publishers"
rows={@streams.publishers}
row_click={fn {_id, publisher} -> JS.navigate(~p"/publishers/#{publisher}") end}
>
<:col :let={{_id, publisher}} label="Id">{publisher.id}</:col>
<:col :let={{_id, publisher}} label="Name">{publisher.name}</:col>
<:action :let={{_id, publisher}}>
@ -29,16 +28,8 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Index do
<.link patch={~p"/publishers/#{publisher}/edit"}>Edit</.link>
</:action>
<:action :let={{id, publisher}}>
<.link
phx-click={JS.push("delete", value: %{id: publisher.id}) |> hide("##{id}")}
data-confirm="Are you sure?"
>
Delete
</.link>
</:action>
</.table>
</div>
<.modal
:if={@live_action in [:new, :edit]}

Loading…
Cancel
Save