feat: design touch up

This commit is contained in:
2026-05-14 00:05:31 +08:00
parent 2c3de1fd6e
commit aa99ba2596
6 changed files with 114 additions and 113 deletions

View File

@@ -33,9 +33,9 @@ impl Screen {
fn on_create(&mut self, cx: &mut gpui::Context<Self>) {
_ = cx
.subscribe(&self.issue_list, |this, _, event, cx| match event {
| issue_list::Event::ItemSelected(pr_id) => {
this.handle_issue_list_item_selected(pr_id, cx);
}
| issue_list::Event::ItemSelected(pr_id) => {
this.handle_issue_list_item_selected(pr_id, cx);
}
})
.detach();
}
@@ -64,8 +64,8 @@ impl gpui::Render for Screen {
div()
.flex()
.flex_col()
.bg(theme.colors.background)
.size_full()
.bg(theme.colors.surface_chrome)
.child(self.titlebar.clone())
.child(
div()
@@ -79,7 +79,7 @@ impl gpui::Render for Screen {
.w_64()
.flex_shrink_0()
.h_full()
.bg(theme.colors.surface_chrome)
.ml_2()
.overflow_hidden()
.child(self.issue_list.clone()),
)
@@ -88,9 +88,12 @@ impl gpui::Render for Screen {
.flex_1()
.min_w_0()
.min_h_0()
.h_full()
.m_2()
.mt_0()
.rounded_lg()
.overflow_hidden()
.bg(theme.colors.surface)
.border_1()
.border_color(theme.colors.border_muted)
.child(self.pull_request_view.clone()),
),
)