Hide next station when no newer posts

This commit is contained in:
2025-11-18 23:10:15 +08:00
parent 351a1a2f70
commit e73f37da76

View File

@@ -66,6 +66,9 @@ function Station({ station }: { station: StationConfig }) {
const alignClass = align === 'end' ? 'items-end text-right' : 'items-start text-left'; const alignClass = align === 'end' ? 'items-end text-right' : 'items-start text-left';
if (!post) { if (!post) {
if (align === 'start') {
return <div className="hidden" aria-hidden="true" />;
}
return ( return (
<div className={`flex flex-col gap-1 text-slate-400 ${alignClass}`}> <div className={`flex flex-col gap-1 text-slate-400 ${alignClass}`}>
<p className="text-[11px] uppercase tracking-[0.4em]">{label}</p> <p className="text-[11px] uppercase tracking-[0.4em]">{label}</p>