Hide next station when no newer posts
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user