Skip to content

Commit 5819ef1

Browse files
committed
Horizontal scroll for stacktrace
1 parent c82b312 commit 5819ef1

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

lib/error_tracker/web/live/show.html.heex

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,19 @@
4141
</label>
4242
</div>
4343

44-
<table class="w-100 text-sm" id="stacktrace">
45-
<tbody>
46-
<tr :for={line <- @occurrence.stacktrace.lines} data-app={line.application || @app}>
47-
<td class="px-2 align-top"><pre>(<%= line.application || @app %>)</pre></td>
48-
<td>
49-
<pre><%= "#{sanitize_module(line.module)}.#{line.function}/#{line.arity}" %>
44+
<div class="overflow-auto">
45+
<table class="w-100 text-sm" id="stacktrace">
46+
<tbody>
47+
<tr :for={line <- @occurrence.stacktrace.lines} data-app={line.application || @app}>
48+
<td class="px-2 align-top"><pre>(<%= line.application || @app %>)</pre></td>
49+
<td>
50+
<pre><%= "#{sanitize_module(line.module)}.#{line.function}/#{line.arity}" %>
5051
<%= "#{line.file}.#{line.line}" %></pre>
51-
</td>
52-
</tr>
53-
</tbody>
54-
</table>
52+
</td>
53+
</tr>
54+
</tbody>
55+
</table>
56+
</div>
5557
</div>
5658
</.section>
5759

0 commit comments

Comments
 (0)