╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │443 else => {}, │ │444 } │ │445 } │ │446 + │ │447 + // cap the list at list_max_width only while the diff pane fits beside it. │ │448 + // the box drops the diff when the width can't hold both minimums, so when │ │449 + // it's that narrow we lift the cap and let the list fill the whole width. │ │450 + const both_panes_fit = if (constraint.max_size.width) |w| w >= list_max_width + diff_min_width else true; │ │451 + self.box.children.values()[list_index].max_size = if (both_panes_fit) .{ .width = list_max_width, .height = null } else null;│ │452 │ │453 // web browsers provide scrolling, so let every widget grow to │ │454 // its natural size instead of clipping inside the diff scroll │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯