Skip to content

Commit 90726f4

Browse files
committed
front: add dots to empty calculated departure time cells
Signed-off-by: Theo Macron <theo.macron0315@gmail.com>
1 parent f52ef36 commit 90726f4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

front/src/modules/timesStops/TimesStopsTable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,11 @@ const TimesStopsTable = ({
309309
return <span className="cell-loading-placeholder" />;
310310
}
311311
const value = info.getValue();
312-
return <span>{value ? formatLocalTime(value) : ''}</span>;
312+
return (
313+
<span className={!value ? 'cell-empty-dot' : undefined}>
314+
{value ? formatLocalTime(value) : '•'}
315+
</span>
316+
);
313317
},
314318
meta: {
315319
className: 'col-computed-departure computed',

front/src/modules/timesStops/styles/_timesStopsTable.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@
308308
}
309309
}
310310

311+
.cell-empty-dot {
312+
display: flex;
313+
justify-content: center;
314+
color: var(--grey80);
315+
}
316+
311317
.cell-loading-placeholder {
312318
display: inline-block;
313319
width: 38px;

0 commit comments

Comments
 (0)