chore: stabilize element ids and overlay focus tracking
This commit is contained in:
@@ -127,7 +127,15 @@ pub(crate) fn sidebar_section(
|
||||
.picture(profile.picture())
|
||||
.small(),
|
||||
)
|
||||
.child(div().text_base().text_ellipsis().child(name))
|
||||
.child(
|
||||
div()
|
||||
.flex_1()
|
||||
.min_w_0()
|
||||
.whitespace_nowrap()
|
||||
.text_base()
|
||||
.text_ellipsis()
|
||||
.child(name),
|
||||
)
|
||||
.into_any_element()
|
||||
})),
|
||||
)
|
||||
|
||||
@@ -182,8 +182,7 @@ impl Render for IssuesView {
|
||||
|
||||
let rows = visible_issues
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter_map(|(ix, &issue_ix)| {
|
||||
.filter_map(|&issue_ix| {
|
||||
// The store re-read per frame can shrink below a captured index.
|
||||
let issue = store.read(cx).issues.get(issue_ix)?;
|
||||
let profile = directory.read(cx).profile(&issue.pubkey, cx);
|
||||
@@ -210,7 +209,7 @@ impl Render for IssuesView {
|
||||
};
|
||||
|
||||
Some(EventRow {
|
||||
id: ix.into(),
|
||||
id: SharedString::from(format!("issue:{id_hex}")).into(),
|
||||
status,
|
||||
title: issue.activity_subject().into(),
|
||||
author: profile.name(),
|
||||
|
||||
Reference in New Issue
Block a user