added drafts
This commit is contained in:
@@ -234,8 +234,13 @@ export default function Search() {
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-baseline justify-between gap-3">
|
||||
<div className={`font-display italic truncate text-lg leading-tight pr-2 ${active ? 'text-[var(--mauve)]' : 'text-[var(--text)]'}`} style={{ paddingInlineEnd: '0.35em' }}>
|
||||
{title}
|
||||
<div className={`font-display italic truncate text-lg leading-tight pr-2 flex items-baseline gap-2 ${active ? 'text-[var(--mauve)]' : 'text-[var(--text)]'}`} style={{ paddingInlineEnd: '0.35em' }}>
|
||||
<span className="truncate">{title}</span>
|
||||
{p.draft && (
|
||||
<span className="text-[9px] font-sans not-italic uppercase tracking-[0.2em] text-[var(--peach)] border border-[var(--peach)]/60 px-1.5 py-0.5 shrink-0" style={{ borderRadius: 1 }}>
|
||||
Draft
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<time className="text-[10px] font-sans uppercase tracking-[0.18em] text-[var(--subtext0)] shrink-0" dateTime={p.date}>
|
||||
{formatDate(p.date)}
|
||||
|
||||
Reference in New Issue
Block a user