Skip to content

Commit

Permalink
Refactor _results_section.html.erb to add margin-bottom to parsed pre…
Browse files Browse the repository at this point in the history
…dictions

This commit modifies the _results_section.html.erb file to add a margin-bottom style to the <pre> element that displays the parsed predictions. This change improves the visual separation between each prediction, making it easier to read and understand.

Related to recent code changes that updated the _results_section.html.erb file in the Leva workbench view. Also aligns with recent repository commits that refactored the Leva module and the RunnerResult class to improve parsed predictions extraction.
  • Loading branch information
kieranklaassen committed Aug 23, 2024
1 parent 0597d89 commit 1ecaa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/leva/workbench/_results_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div>
<h4 class="text-xs font-semibold text-indigo-200 my-2 gap-2">Parsed Predictions: <%= runner_result.dataset_record.recordable.extract_regex_pattern.to_s %></h4>
<% runner_result.parsed_predictions.each do |prediction| %>
<pre class="text-sm text-gray-300 whitespace-pre-wrap bg-gray-700 p-2 rounded"><%= prediction %></pre>
<pre class="text-sm text-gray-300 whitespace-pre-wrap bg-gray-700 p-2 rounded mb-2"><%= prediction %></pre>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 1ecaa90

Please sign in to comment.