hotfix: border colors & rendering

This commit is contained in:
2025-02-10 17:32:24 +01:00
parent 6a23821f9c
commit 0431153326
+10 -9
View File
@@ -26,20 +26,21 @@
<table class="h-full w-full border-collapse"> <table class="h-full w-full border-collapse">
<tbody> <tbody>
<tr <tr
class="text-transparent" :class="`align-top ${
:class="{ i == 0 ||
'align-top text-inherit': (computedTimetable[i - 1].departureSpeed == row.arrivalSpeed &&
i > 0 && computedTimetable[i - 1].departureTracks == row.arrivalTracks &&
(computedTimetable[i - 1].departureSpeed != row.arrivalSpeed || computedTimetable[i - 1].realLine == row.realLine)
computedTimetable[i - 1].departureTracks != row.arrivalTracks || ? 'text-transparent'
computedTimetable[i - 1].realLine != row.realLine), : 'text-inherit'
}" }`"
> >
<td>{{ row.arrivalKm }}</td> <td>{{ row.arrivalKm }}</td>
</tr> </tr>
<tr <tr
:class="{ :class="{
'border-t align-top': row.arrivalTracks != row.departureTracks || row.departureSpeed != row.arrivalSpeed, 'border-black dark:border-white border-t align-top':
row.arrivalTracks != row.departureTracks || row.departureSpeed != row.arrivalSpeed,
hidden: row.arrivalTracks == row.departureTracks && row.departureSpeed == row.arrivalSpeed, hidden: row.arrivalTracks == row.departureTracks && row.departureSpeed == row.arrivalSpeed,
}" }"
> >