╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │413 - return &self.box.children.values()[list_index].widget.scroll; │ │441 + return &self.contentBox().children.values()[list_index].widget.scroll;│ │442 } │ │443 │ │444 fn listBox(self: *View) *wgt.Box(ui.Widget) { │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │446 } │ │447 │ │448 fn diffOuter(self: *View) *wgt.Box(ui.Widget) { │ │421 - return &self.box.children.values()[diff_index].widget.box; │ │449 + return &self.contentBox().children.values()[diff_index].widget.box;│ │450 } │ │451 │ │452 fn diffScroll(self: *View) *wgt.Scroll(ui.Widget) { │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │458 } │ │459 │ │460 fn diffActive(self: *View) bool { │ │433 - const cid = self.box.getFocus().child_id orelse return false; │ │434 - return self.box.children.getIndex(cid) == diff_index; │ │461 + const content = self.contentBox(); │ │462 + const cid = content.getFocus().child_id orelse return false; │ │463 + return content.children.getIndex(cid) == diff_index; │ │464 } │ │465 │ │466 // the selected commit's index, or null when the "next" row is selected.│ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │518 // the box drops the diff when the width can't hold both minimums, so when │ │519 // it's that narrow we lift the cap and let the list fill the whole width. │ │520 const both_panes_fit = if (constraint.max_size.width) |w| w >= list_max_width + diff_min_width else true; │ │492 - self.box.children.values()[list_index].max_size = if (both_panes_fit) .{ .width = list_max_width, .height = null } else null; │ │521 + self.contentBox().children.values()[list_index].max_size = if (both_panes_fit) .{ .width = list_max_width, .height = null } else null;│ │522 │ │523 // the web bounds the layout to the browser viewport like the terminal; │ │524 // each Scroll's web-native mode hands its full content to a real │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │759 // the diff pane wasn't laid out last build (too narrow to show beside │ │760 // the list), so its hunks aren't in the focus tree yet. select the pane│ │761 // at the box level, and the hunk will be focused after the next build. │ │733 - self.box.getFocus().child_id = self.diffOuter().getFocus().id; │ │762 + self.contentBox().getFocus().child_id = self.diffOuter().getFocus().id; │ │763 } │ │764 │ │765 fn focusList(self: *View, root_focus: *Focus) !void { │ ╰─────────────────────────────────────────────────────────────────────────────────────╯