Small corrections
Some checks failed
Deploy Website / deploy (push) Failing after 4m51s

This commit is contained in:
2026-02-08 01:33:50 +01:00
parent 8ffe2c22c7
commit 1f339f1503
20 changed files with 288 additions and 49 deletions

View File

@@ -158,12 +158,17 @@ impl<'a> SampleBrowser<'a> {
Style::new().fg(icon_color)
};
let spans = vec![
let mut spans = vec![
Span::raw(indent),
Span::styled(icon, icon_style),
Span::styled(&entry.label, label_style),
];
if matches!(entry.kind, TreeLineKind::File) {
let idx_style = Style::new().fg(colors.browser.empty_text);
spans.push(Span::styled(format!(" {}", entry.index), idx_style));
}
lines.push(Line::from(spans));
}