style(diff-overlay): rustfmt the diff overlay module

This commit is contained in:
l0ng-ai
2026-07-15 22:05:20 +08:00
parent 6438d21886
commit f26045fbb5
+12 -11
View File
@@ -19,9 +19,7 @@
use std::collections::HashSet;
use std::path::PathBuf;
use gpui::{
AnyElement, FocusHandle, FontWeight, KeyDownEvent, Window, div, prelude::*, px,
};
use gpui::{AnyElement, FocusHandle, FontWeight, KeyDownEvent, Window, div, prelude::*, px};
use gpui_component::button::{Button, ButtonVariants as _};
use gpui_component::{ActiveTheme as _, Icon, IconName, Sizable as _, h_flex, v_flex};
@@ -265,14 +263,17 @@ impl Tty7App {
})
})
// A quiet "refreshing" hint while a re-probe flies over stale data.
.when(overlay.loading && matches!(overlay.load, DiffLoad::Ready(_)), |bar| {
bar.child(
div()
.text_xs()
.text_color(cx.theme().muted_foreground)
.child("refreshing…"),
)
})
.when(
overlay.loading && matches!(overlay.load, DiffLoad::Ready(_)),
|bar| {
bar.child(
div()
.text_xs()
.text_color(cx.theme().muted_foreground)
.child("refreshing…"),
)
},
)
.child(div().flex_1())
.child(
Button::new("diff-overlay-close")