╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │81 const aa = session.page_arena.allocator(); │ │82 const ref_name = std.Uri.percentDecodeInPlace(try aa.dupe(u8, page.files.patchrev_id orelse data.ref_or_oid_value)); │ │83 const bottom_label = try ui.clippedBottomLabel(try aa.alloc(u8, ui.clipped_bottom_label_max_len), ref_name); │ │84 - const bottom_label_width = try xitui.width.displayWidth(bottom_label); │ │84 const changes_label = switch (page.changes) { │ │85 .diff => diff_tab_label, │ │86 .commits => |c| if (c.commit_count) |count| try std.fmt.allocPrint(aa, commits_tab_label ++ " ({d})", .{count}) else commits_tab_label,│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │153 const files_link = try ui.inPageTabLink(session, files_route, current_tag == .repo_files); │ │154 const changes_route = (switch (page.changes) { │ │155 .diff => |d| d.route.page(d.window.start, d.path), │ │157 - .commits => |c| ui.RoutablePage.repoCommitsRoute(identity, data.ref_or_oid, data.ref_or_oid_value, 0, "", c.base_oid),│ │156 + .commits => |c| ui.RoutablePage.repoCommitsRoute(identity, data.ref_or_oid, data.ref_or_oid_value, c.base_oid), │ │157 }) orelse return error.RouteTooLong; │ │158 const changes_tag = std.meta.activeTag(changes_route); │ │159 const changes_link = try ui.inPageTabLink(session, changes_route, current_tag == changes_tag); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │189 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │190 .widget = .{ .text_box = text_box }, │ │191 .rect = null, │ │193 - .min_size = .{ .width = @max(files_tab_label.len, bottom_label_width) + 2, .height = null },│ │192 + .min_size = .{ .width = files_tab_label.len + 2, .height = null }, │ │193 }); │ │194 } │ │195 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │204 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │205 .widget = .{ .text_box = text_box }, │ │206 .rect = null, │ │208 - .min_size = .{ .width = @max(changes_label_width, bottom_label_width) + 2, .height = null },│ │207 + .min_size = .{ .width = changes_label_width + 2, .height = null }, │ │208 }); │ │209 } │ │210 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │321 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │322 .widget = .{ .text_box = text_box }, │ │323 .rect = null, │ │325 - .min_size = .{ .width = @max(new_tab_label.len, new_repo_tab_bottom_label.len) + 2, .height = null }, │ │324 + .min_size = .{ .width = new_tab_label.len + 2, .height = null }, │ │325 }); │ │326 } else if (session.data.host_kind == .server) { │ │327 var text_box = try wgt.TextBox.init(allocator, new_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = new_user_tab_bottom_label });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │333 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │334 .widget = .{ .text_box = text_box }, │ │335 .rect = null, │ │337 - .min_size = .{ .width = @max(new_tab_label.len, new_user_tab_bottom_label.len) + 2, .height = null },│ │336 + .min_size = .{ .width = new_tab_label.len + 2, .height = null }, │ │337 }); │ │338 } │ │339 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯