feat: scroll to current contact in sidebar by default

This commit is contained in:
Robert Perce 2026-04-07 10:49:04 -05:00
parent 0baf51646e
commit 62b0efac04
4 changed files with 36 additions and 7 deletions

View file

@ -117,7 +117,7 @@ impl Layout {
li { button hx-post="/contact/new" { "+ Add Contact" } }
@for link in &self.contact_links {
li {
a href=(format!("/contact/{}", link.contact_id)) {
a id=(format!("nav-link-{}", link.contact_id)) href=(format!("/contact/{}", link.contact_id)) {
(link.name)
}
}