|
5 | 5 | </div> |
6 | 6 |
|
7 | 7 | <div id="header"> |
8 | | - <p class="text-sm uppercase font-semibold text-gray-400"> |
| 8 | + <p class="text-sm uppercase font-semibold text-gray-400 light:text-gray-500"> |
9 | 9 | Error #{@error.id} @ {format_datetime(@occurrence.inserted_at)} |
10 | 10 | </p> |
11 | 11 | <h1 class="my-1 text-2xl w-full font-semibold whitespace-nowrap text-ellipsis overflow-hidden"> |
|
16 | 16 | </div> |
17 | 17 |
|
18 | 18 | <div class="grid grid-cols-1 md:grid-cols-4 md:space-x-3 mt-6 gap-2"> |
19 | | - <div class="md:col-span-3 md:border-r md:border-gray-600 space-y-8 pr-5"> |
| 19 | + <div class="md:col-span-3 md:border-r md:border-gray-600 light:md:border-gray-300 space-y-8 pr-5"> |
20 | 20 | <.section title="Full message"> |
21 | | - <pre class="overflow-auto p-4 rounded-lg bg-gray-300/10 border border-gray-900"><%= @occurrence.reason %></pre> |
| 21 | + <pre class="overflow-auto p-4 rounded-lg bg-gray-300/10 light:bg-gray-100 border border-gray-900 light:border-gray-200"><%= @occurrence.reason %></pre> |
22 | 22 | </.section> |
23 | 23 |
|
24 | 24 | <.section :if={ErrorTracker.Error.has_source_info?(@error)} title="Source"> |
25 | | - <pre class="overflow-auto text-sm p-4 rounded-lg bg-gray-300/10 border border-gray-900"> |
| 25 | + <pre class="overflow-auto text-sm p-4 rounded-lg bg-gray-300/10 light:bg-gray-100 border border-gray-900 light:border-gray-200"> |
26 | 26 | <%= sanitize_module(@error.source_function) %> |
27 | 27 | <%= @error.source_line %></pre> |
28 | 28 | </.section> |
29 | 29 |
|
30 | 30 | <.section :if={@occurrence.breadcrumbs != []} title="Bread crumbs"> |
31 | | - <div class="relative overflow-x-auto shadow-md sm:rounded-lg ring-1 ring-gray-900"> |
32 | | - <table class="w-full text-sm text-gray-400 table-fixed"> |
| 31 | + <div class="relative overflow-x-auto shadow-md sm:rounded-lg ring-1 ring-gray-900 light:ring-gray-200"> |
| 32 | + <table class="w-full text-sm text-gray-400 light:text-gray-500 table-fixed"> |
33 | 33 | <tr |
34 | 34 | :for={ |
35 | 35 | {breadcrumb, index} <- |
36 | 36 | @occurrence.breadcrumbs |> Enum.reverse() |> Enum.with_index() |
37 | 37 | } |
38 | | - class="border-b bg-gray-400/10 border-gray-900 last:border-b-0" |
| 38 | + class="border-b bg-gray-400/10 light:bg-gray-50 border-gray-900 light:border-gray-200 last:border-b-0" |
39 | 39 | > |
40 | | - <td class="w-11 pl-2 py-4 font-medium text-white relative text-right"> |
| 40 | + <td class="w-11 pl-2 py-4 font-medium text-white light:text-gray-900 relative text-right"> |
41 | 41 | {length(@occurrence.breadcrumbs) - index}. |
42 | 42 | </td> |
43 | | - <td class="px-2 py-4 font-medium text-white relative">{breadcrumb}</td> |
| 43 | + <td class="px-2 py-4 font-medium text-white light:text-gray-900 relative">{breadcrumb}</td> |
44 | 44 | </tr> |
45 | 45 | </table> |
46 | 46 | </div> |
47 | 47 | </.section> |
48 | 48 |
|
49 | 49 | <.section :if={@occurrence.stacktrace.lines != []} title="Stacktrace"> |
50 | | - <div class="p-4 bg-gray-300/10 border border-gray-900 rounded-lg"> |
| 50 | + <div class="p-4 bg-gray-300/10 light:bg-gray-100 border border-gray-900 light:border-gray-200 rounded-lg"> |
51 | 51 | <div class="w-full mb-4"> |
52 | 52 | <label class="flex justify-end"> |
53 | 53 | <input |
54 | 54 | type="checkbox" |
55 | 55 | id="show-app-frames" |
56 | | - class="ml-2 mr-2 mb-1 mt-1 inline-block text-sky-600 rounded focus:ring-sky-600 ring-offset-gray-800 focus:ring-2 bg-gray-700 border-gray-600" |
| 56 | + class="ml-2 mr-2 mb-1 mt-1 inline-block text-sky-600 rounded focus:ring-sky-600 ring-offset-gray-800 light:ring-offset-white focus:ring-2 bg-gray-700 light:bg-white border-gray-600 light:border-gray-300" |
57 | 57 | phx-click={JS.toggle(to: "#stacktrace tr:not([data-app=#{@app}])")} |
58 | 58 | /> |
59 | 59 | <span class="text-md inline-block"> |
|
81 | 81 | <.section title="Context"> |
82 | 82 | <pre |
83 | 83 | id="context" |
84 | | - class="overflow-auto text-sm p-4 rounded-lg bg-gray-300/10 border border-gray-900" |
| 84 | + class="overflow-auto text-sm p-4 rounded-lg bg-gray-300/10 light:bg-gray-100 border border-gray-900 light:border-gray-200" |
85 | 85 | phx-hook="JsonPrettyPrint" |
86 | 86 | > |
87 | 87 | <%= ErrorTracker.__default_json_encoder__().encode_to_iodata!(@occurrence.context) %> |
88 | 88 | </pre> |
89 | 89 | </.section> |
90 | 90 | </div> |
91 | 91 |
|
92 | | - <div class="px-3 md:pl-0 space-y-8"> |
| 92 | + <div class="px-3 md:pl-0 space-y-8 light:md:border-gray-300"> |
93 | 93 | <.section title={"Occurrence (#{@total_occurrences} total)"}> |
94 | 94 | <form phx-change="occurrence_navigation"> |
95 | 95 | <select |
96 | 96 | name="occurrence_id" |
97 | | - class="w-full border text-sm rounded-lg block p-2.5 bg-gray-700 border-gray-600 placeholder-gray-400 text-white focus:ring-blue-500 focus:border-blue-500" |
| 97 | + class="w-full border text-sm rounded-lg block p-2.5 bg-gray-700 light:bg-white border-gray-600 light:border-gray-300 placeholder-gray-400 text-white light:text-gray-900 focus:ring-blue-500 focus:border-blue-500" |
98 | 98 | > |
99 | 99 | <option |
100 | 100 | :for={occurrence <- @occurrences} |
|
0 commit comments