Improve compare styling

This commit is contained in:
Tim 2025-05-10 12:51:55 +02:00
parent ab97482ae6
commit 771f354346
3 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1,8 @@
<?php
namespace App\Service\SnipContent;
class Lexer
{
}

View File

@ -23,8 +23,12 @@
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? 'danger' : 'info') }}"> <td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? 'danger' : 'info') }}">
{{ line.type }} {{ line.type }}
</td> </td>
<td>{{ line.from }}</td> <td class="table-{{ line.type == 'insert' ? '' : (line.type == 'delete' ? 'danger' : 'info') }}">
<td>{{ line.to }}</td> {{ line.from }}
</td>
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? '' : 'info') }}">
{{ line.to }}
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,7 @@
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning"> <a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
<i class="fa fa-refresh"></i> Latest <i class="fa fa-refresh"></i> Latest
</a> </a>
<a href="{{ path('content_compare', {to: snip.activeVersion.id}) }}" class="btn btn-warning"> <a href="{{ path('content_compare', {to: snip.activeVersion.id}) }}" class="btn btn-info">
<i class="fa fa-left-right"></i> Compare <i class="fa fa-left-right"></i> Compare
</a> </a>
<br><br> <br><br>