mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
fix: table border alignment
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
<th width="100" class="border border-black dark:border-white">
|
<th width="100" class="border border-black dark:border-white">
|
||||||
{{ $t('headers.line_km') }}
|
{{ $t('headers.line_km') }}
|
||||||
</th>
|
</th>
|
||||||
<th width="35" class="border border-black dark:border-white">V<sub>P</sub></th>
|
<th width="40" class="border border-black dark:border-white">V<sub>P</sub></th>
|
||||||
<th width="35" class="border border-black dark:border-white">V<sub>L</sub></th>
|
<th width="40" class="border border-black dark:border-white">V<sub>L</sub></th>
|
||||||
<th width="200" class="border border-black dark:border-white">
|
<th width="200" class="border border-black dark:border-white">
|
||||||
{{ $t('headers.station') }}
|
{{ $t('headers.station') }}
|
||||||
</th>
|
</th>
|
||||||
@@ -76,33 +76,29 @@
|
|||||||
|
|
||||||
<!-- Km -->
|
<!-- Km -->
|
||||||
<td
|
<td
|
||||||
class="border border-black dark:border-white border-t-1 border-b-1 relative p-0"
|
class="border border-black dark:border-white border-t-0 border-b-1 relative p-0"
|
||||||
:class="{
|
:class="{
|
||||||
'border-t-0':
|
|
||||||
row.lastRowRef == null ||
|
|
||||||
(row.lastRowRef.departureSpeedL == row.arrivalSpeedL &&
|
|
||||||
row.lastRowRef.departureSpeedP == row.arrivalSpeedP &&
|
|
||||||
row.lastRowRef.departureTracks == row.arrivalTracks &&
|
|
||||||
row.lastRowRef.realLine == row.realLine),
|
|
||||||
'border-b-0': i != computedTimetableRows.length - 1
|
'border-b-0': i != computedTimetableRows.length - 1
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div class="absolute top-0 left-0 w-full h-full">
|
<div class="absolute -top-[0.5px] left-0 w-full h-full">
|
||||||
<table class="h-full w-full border-collapse">
|
<table class="h-full w-full border-collapse">
|
||||||
<tbody>
|
<tbody>
|
||||||
<!-- Arrival Km -->
|
<!-- Arrival Km -->
|
||||||
<tr
|
<tr>
|
||||||
:class="`align-top ${
|
<td
|
||||||
row.lastRowRef == null ||
|
class="align-top border-t text-inherit"
|
||||||
(row.lastRowRef.departureSpeedL == row.arrivalSpeedL &&
|
:class="{
|
||||||
row.lastRowRef.departureSpeedP == row.arrivalSpeedP &&
|
'border-t-0 text-transparent':
|
||||||
row.lastRowRef.departureTracks == row.arrivalTracks &&
|
row.lastRowRef == null ||
|
||||||
row.lastRowRef.realLine == row.realLine)
|
(row.lastRowRef.departureSpeedL == row.arrivalSpeedL &&
|
||||||
? 'text-transparent'
|
row.lastRowRef.departureSpeedP == row.arrivalSpeedP &&
|
||||||
: 'text-inherit'
|
row.lastRowRef.departureTracks == row.arrivalTracks &&
|
||||||
}`"
|
row.lastRowRef.realLine == row.realLine)
|
||||||
>
|
}"
|
||||||
<td>{{ row.arrivalKm }}</td>
|
>
|
||||||
|
{{ row.arrivalKm }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- Departure Km -->
|
<!-- Departure Km -->
|
||||||
@@ -133,7 +129,7 @@
|
|||||||
}"
|
}"
|
||||||
colspan="2"
|
colspan="2"
|
||||||
>
|
>
|
||||||
<div class="absolute top-0 left-0 w-full h-full">
|
<div class="absolute -top-[0.5px] left-0 w-full h-full">
|
||||||
<table class="h-full w-full border-collapse">
|
<table class="h-full w-full border-collapse">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="align-top">
|
<tr class="align-top">
|
||||||
|
|||||||
Reference in New Issue
Block a user