|
1 | 1 | <div class="mx-auto max-w-4xl p-12 bg-brand-900 text-white rounded-lg shadow-lg">
|
2 |
| - <.header class="text-center text-white text-2xl"> |
| 2 | + <.header> |
3 | 3 | Listing Chunks
|
4 | 4 | <:actions>
|
5 |
| - <.link patch={~p"/files/new"} class="font-semibold hover:underline text-secondary-light"> |
6 |
| - <.button class="bg-secondary hover:bg-secondary-dark text-white p-4 rounded">New File</.button> |
| 5 | + <.link patch={~p"/files/new"}> |
| 6 | + <.button>New File</.button> |
7 | 7 | </.link>
|
8 | 8 | </:actions>
|
9 | 9 | </.header>
|
|
12 | 12 | id="chunks"
|
13 | 13 | rows={@streams.chunks}
|
14 | 14 | row_click={fn {_id, chunk} -> JS.navigate(~p"/chunks/#{chunk}") end}
|
15 |
| - class="w-full mt-6 bg-brand-800 rounded-lg" |
16 | 15 | >
|
17 |
| - <:col :let={{_id, chunk}} label="Hash" class="p-4 border-b border-brand-700 text-white"> |
| 16 | + <:col :let={{_id, chunk}} label="Hash"> |
18 | 17 | <%= FileonchainWeb.ChunkLive.Index.shorten_hash(chunk.hash) %>
|
19 | 18 | </:col>
|
20 |
| - <:col :let={{_id, chunk}} label="Data" class="p-4 border-b border-brand-700"> |
| 19 | + <:col :let={{_id, chunk}} label="Data"> |
21 | 20 | <%= raw(FileonchainWeb.ChunkLive.Index.render_chunk_preview(chunk)) %>
|
22 | 21 | </:col>
|
23 |
| - <:col :let={{_id, chunk}} label="Size" class="p-4 border-b border-brand-700 text-white"> |
| 22 | + <:col :let={{_id, chunk}} label="Size"> |
24 | 23 | <%= FileonchainWeb.ChunkLive.Index.format_chunk_size(chunk.data) %>
|
25 | 24 | </:col>
|
26 |
| - <:action :let={{_id, chunk}} class="p-4 border-b border-brand-700"> |
| 25 | + <:action :let={{_id, chunk}}> |
27 | 26 | <div class="sr-only">
|
28 |
| - <.link navigate={~p"/chunks/#{chunk}"} class="text-secondary-light hover:underline">Show</.link> |
| 27 | + <.link navigate={~p"/chunks/#{chunk}"}>Show</.link> |
29 | 28 | </div>
|
30 | 29 | </:action>
|
31 |
| - <:action :let={{id, chunk}} class="p-4 border-b border-brand-700"> |
| 30 | + <:action :let={{id, chunk}}> |
32 | 31 | <.link
|
33 | 32 | phx-click={JS.push("hide", value: %{id: chunk.id}) |> hide("##{id}")}
|
34 | 33 | data-confirm="Are you sure?"
|
35 |
| - class="text-secondary hover:text-secondary-light" |
36 | 34 | >
|
37 | 35 | Hide
|
38 | 36 | </.link>
|
|
0 commit comments