╭ changed ───────────╮ │src/ui/Repo/Refs.zig│ ╰────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │164 │ │165 // both backends list refs in sorted order, so a prefix is just a seek │ │166 { │ │167 - var header = try wgt.Box(ui.Widget).init(allocator, .{ .border = null, .direction = .horiz }); │ │168 - errdefer header.deinit(allocator); │ │167 + var header_scroll = try ui.widget.HeaderScroll.init(allocator, session); │ │168 + errdefer header_scroll.deinit(allocator); │ │169 + const header = header_scroll.row(); │ │170 { │ │171 var search_box = try ui.widget.SearchBox.init(allocator, session, " search ", "search", data.search);│ │172 errdefer search_box.deinit(allocator); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │180 try header.children.put(allocator, spacer.getFocus().id, .{ .widget = .{ .spacer = spacer }, .rect = null, .min_size = null }); │ │181 } │ │182 // a row taller than the box, leaving a blank line above the columns │ │182 - try outer.children.put(allocator, header.getFocus().id, .{ .widget = .{ .box = header }, .rect = null, .min_size = .{ .width = null, .height = 4 } }); │ │183 + try outer.children.put(allocator, header_scroll.getFocus().id, .{ .widget = .{ .header_scroll = header_scroll }, .rect = null, .min_size = .{ .width = null, .height = 4 } });│ │184 } │ │185 │ │186 // with both columns empty, the empty message stands in for them │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │359 } │ │360 │ │361 fn searchBox(self: *View) *ui.widget.SearchBox { │ │361 - return &self.box.children.values()[header_index].widget.box.children.values()[0].widget.search_box; │ │362 + return &self.box.children.values()[header_index].widget.header_scroll.row().children.values()[0].widget.search_box;│ │363 } │ │364 │ │365 fn headerActive(self: *View) bool { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯