Tighten timeline spacing and add white node

This commit is contained in:
2025-11-19 01:07:25 +08:00
parent 1a7ae8a269
commit 9b2d754a2f
2 changed files with 6 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ interface TimelineWrapperProps {
export function TimelineWrapper({ children, className }: TimelineWrapperProps) {
return (
<div className={clsx('relative pl-8', className)}>
<div className="pointer-events-none absolute left-3 top-0 h-full w-0.5 bg-gradient-to-b from-transparent via-blue-400 to-transparent shadow-[0_0_12px_rgba(59,130,246,0.45)] dark:via-cyan-300" aria-hidden="true" />
<div className={clsx('relative pl-6', className)}>
<div className="pointer-events-none absolute left-2 top-0 h-full w-px bg-gradient-to-b from-transparent via-slate-200 to-transparent shadow-[0_0_6px_rgba(148,163,184,0.35)] dark:via-slate-700" aria-hidden="true" />
<div className="space-y-4">
{children}
</div>