feat: scroll to current contact in sidebar by default
This commit is contained in:
parent
0baf51646e
commit
62b0efac04
4 changed files with 36 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue