ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit a609268e436b44109e78081692bf8cdc05ebaad1
parent 31821627fa65a44cba1b7e5a2dec7f5c6f0de4f2
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 5 Feb 2025 11:25:51 +0100

journeyView: use flex-center for table head
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/journeyView.js b/src/journeyView.js
@@ -30,7 +30,7 @@ const legTemplate = (leg, profile) => {
 					<thead>
 						<tr>
 							<td colspan="4">
-								<div class="center"><a href="#/t/${profile}/${leg.tripId}">${formatLineDisplayName(leg.line)}${leg.direction ? html` → ${leg.direction}` : nothing}</a>
+								<div class="flex-center"><a href="#/t/${profile}/${leg.tripId}">${formatLineDisplayName(leg.line)}${leg.direction ? html` → ${leg.direction}` : nothing}</a>
 								${leg.cancelled ? html`<b class="cancelled-text">${t('cancelled-ride')}</b>` : nothing}
 								${!!remarks.length ? html`
 									<a class="link ${remarksIcon}" @click=${() => showModal(t('remarks'), remarksModalTemplate(remarks))}></a>