fix: pr body scrolling

This commit is contained in:
2026-05-11 02:14:05 +08:00
parent 5d741f39eb
commit 6c0283d7a3
3 changed files with 51 additions and 25 deletions

View File

@@ -66,8 +66,7 @@ impl Screen {
fn handle_issue_list_item_selected(
&mut self,
id: &api::issues::Id,
cx: &mut gpui::Context<Self>,
) {
cx: &mut gpui::Context<Self>, ) {
println!("handle issue list item selected: {:?}", id);
self.pull_request_view.update(cx, |view, cx| {
view.change_displayed_pull_request(id.clone(), cx);
@@ -95,6 +94,7 @@ impl gpui::Render for Screen {
.flex()
.flex_row()
.flex_1()
.min_h_0()
.w_full()
.child(
div()
@@ -119,7 +119,9 @@ impl gpui::Render for Screen {
div()
.flex_1()
.min_w_0()
.min_h_0()
.h_full()
.overflow_hidden()
.bg(theme.colors.surface)
.border_l_1()
.border_color(theme.colors.border)