chore: stabilize element ids and overlay focus tracking
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-24 19:41:45 +07:00
parent 4979eff1f1
commit 0fd8ea12fb
24 changed files with 638 additions and 404 deletions
+1 -3
View File
@@ -226,7 +226,6 @@ pub fn commit_list(
let on_click = on_click.clone();
let row_commit = commit.clone();
commit_row(
ix,
&commit,
action,
move |window, cx| on_click(&row_commit, window, cx),
@@ -244,14 +243,13 @@ pub fn commit_list(
/// One copyable commit summary row: id, subject, author, and age.
pub(crate) fn commit_row(
ix: usize,
commit: &FileCommit,
action: Option<AnyElement>,
on_click: impl Fn(&mut Window, &mut gpui::App) + 'static,
cx: &gpui::App,
) -> gpui::AnyElement {
h_flex()
.id(ix)
.id(commit.id.clone())
.px_4()
.h(px(COMMIT_ROW_HEIGHT))
.w_full()