Skip to content

Commit b8b509c

Browse files
committed
fix: proof search results style
1 parent 0f94007 commit b8b509c

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

  • explorer/lib/explorer_web/live/pages/search

explorer/lib/explorer_web/live/pages/search/index.ex

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,27 @@ defmodule ExplorerWeb.Search.Index do
5252
Search Results for "<%= @hash |> Helpers.shorten_hash() %>"
5353
</.card_preheding>
5454
<%= if @results != nil or @results != [] do %>
55-
<.table id="results" rows={@results}>
56-
<:col :let={result} label="Batch Hash" class="text-left">
57-
<.link
58-
navigate={~p"/batches/#{result}"}
59-
class="flex justify-between group group-hover:text-foreground/80"
60-
>
61-
<span class="items-center group-hover:text-foreground/80 hidden md:inline">
62-
<%= result %>
63-
</span>
64-
<span class="items-center group-hover:text-foreground/80 md:hidden">
65-
<%= result |> Helpers.shorten_hash(12) %>
66-
</span>
67-
<.right_arrow />
68-
<.tooltip>
69-
<%= result %>
70-
</.tooltip>
71-
</.link>
72-
</:col>
73-
</.table>
55+
<.card_background>
56+
<.table id="results" rows={@results}>
57+
<:col :let={result} label="Batch Hash" class="text-left">
58+
<.link
59+
navigate={~p"/batches/#{result}"}
60+
class="flex justify-between group group-hover:text-foreground/80"
61+
>
62+
<span class="items-center group-hover:text-foreground/80 hidden md:inline">
63+
<%= result %>
64+
</span>
65+
<span class="items-center group-hover:text-foreground/80 md:hidden">
66+
<%= result |> Helpers.shorten_hash(12) %>
67+
</span>
68+
<.right_arrow />
69+
<.tooltip>
70+
<%= result %>
71+
</.tooltip>
72+
</.link>
73+
</:col>
74+
</.table>
75+
</.card_background>
7476
<div class="flex gap-x-2 justify-center items-center">
7577
<%= if @current_page != 1 do %>
7678
<.link patch={~p"/search?q=#{@hash}&page=#{@current_page - 1}"}>

0 commit comments

Comments
 (0)