fix: align created label to right edge in note list date row

This commit is contained in:
lucaronin
2026-04-10 20:01:40 +02:00
parent 5ebffc447b
commit 98d19e4c41
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ fn collect_md_files(vault_path: &Path, exclude: &Path) -> Vec<std::path::PathBuf
.collect()
}
fn unique_wikilink_targets<'a>(targets: Vec<&'a str>) -> Vec<&'a str> {
fn unique_wikilink_targets(targets: Vec<&str>) -> Vec<&str> {
let mut seen = HashSet::new();
targets
.into_iter()

View File

@@ -224,7 +224,7 @@ function NoteDateRow({ entry }: { entry: VaultEntry }) {
return (
<div className="flex items-center justify-between gap-3 text-[10px] text-muted-foreground" data-testid="note-date-row">
<span>{modifiedLabel}</span>
{createdLabel && <span className="shrink-0">{createdLabel}</span>}
{createdLabel && <span className="ml-auto">{createdLabel}</span>}
</div>
)
}