Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compare50/_renderer/static/match.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pre {
max-width:100%;
width: 100%;
height: 90vh;
counter-reset: line_numbers;
}

.right {
Expand All @@ -69,6 +70,7 @@ pre {
max-width:100%;
width: 100%;
height: 90vh;
counter-reset: line_numbers;
}

.fragment:before {
Expand Down
5 changes: 3 additions & 2 deletions compare50/_renderer/templates/match.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="row sticky-top bg-dark text-light">
{% for sub, side in (sub_a, "left"), (sub_b, "right") %}
<div class="sub_name" id="{{name}}{{side}}_header">
<h5 title="{{sub.path}}">{{sub.name}} ({{sub.percentage}}%)</h5>
{% for file in sub.files %}
<h5 title="{{sub.path}}">{{sub.name}} - {{file.name}} ({{file.percentage}}%)</h5>
{%- endfor -%}
</div>
{% endfor %}
</div>
Expand All @@ -11,7 +13,6 @@ <h5 title="{{sub.path}}">{{sub.name}} ({{sub.percentage}}%)</h5>
<div class="col-sm-6 col-2 side {{side}}" id="{{name}}{{side}}">
{% for file in sub.files %}
<div class="submission-file">
<h4 class="file_name">{{file.name}} <span class="text-secondary small">({{file.percentage}}%)</span></h4>
<pre>
{%- set ns = namespace(is_newline=true) -%}
{%- for frag in file.fragments -%}
Expand Down