╭ changed ─────────────╮ │src/ui/Fork/Header.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────╮ │14 const patch_tab_label = "patch"; │ │15 const diff_tab_label = "diff"; │ │16 const files_tab_label = "files"; │ │17 -const new_repo_tab_label = "new repo"; │ │17 +const new_repo_tab_label = "new"; │ │18 +const new_repo_tab_bottom_label = "repo"; │ │19 │ │20 pub const AuthTab = @import("../AuthTab.zig");│ │21 │ ╰──────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │136 │ │137 // repos are created for the logged-in user. │ │138 if (session.data.user_id != null) { │ │138 - var new_repo = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │139 + var new_repo = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = new_repo_tab_bottom_label });│ │140 errdefer new_repo.deinit(allocator); │ │141 new_repo.getFocus().mode = .all; │ │142 new_repo.getFocus().kind = .{ .custom = new_repo_link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │143 try tab_ids.put(allocator, new_repo.getFocus().id, {}); │ │144 if (current_tag == .fork_new_repo) selected_tab = new_repo.getFocus().id; │ │144 - try tabs_box.children.put(allocator, new_repo.getFocus().id, .{ .widget = .{ .text_box = new_repo }, .rect = null, .min_size = .{ .width = new_repo_tab_label.len + 2, .height = null } }); │ │145 + try tabs_box.children.put(allocator, new_repo.getFocus().id, .{ .widget = .{ .text_box = new_repo }, .rect = null, .min_size = .{ .width = @max(new_repo_tab_label.len, new_repo_tab_bottom_label.len) + 2, .height = null } });│ │146 } │ │147 │ │148 // keep authentication within the fork page. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭────────────────────────────────────────────────────╮ │11 │ │12 const about_tab_label = "about"; │ │13 const users_tab_label = "users"; │ │14 -const new_repo_tab_label = "new repo"; │ │14 +const new_repo_tab_label = "new"; │ │15 +const new_repo_tab_bottom_label = "repo"; │ │16 │ │17 pub const AuthTab = @import("./../AuthTab.zig");│ │18 │ ╰────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │146 │ │147 // new repo tab. repos are created for the logged-in user. │ │148 if (session.data.user_id != null) { │ │148 - var text_box = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │149 + var text_box = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = new_repo_tab_bottom_label });│ │150 errdefer text_box.deinit(allocator); │ │151 text_box.getFocus().mode = .all; │ │152 text_box.getFocus().kind = .{ .custom = new_repo_link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │155 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │156 .widget = .{ .text_box = text_box }, │ │157 .rect = null, │ │157 - .min_size = .{ .width = new_repo_tab_label.len + 2, .height = null }, │ │158 + .min_size = .{ .width = @max(new_repo_tab_label.len, new_repo_tab_bottom_label.len) + 2, .height = null },│ │159 }); │ │160 } │ │161 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭────────────────────────────────────────────────────╮ │18 const patches_tab_label = "patches"; │ │19 const discuss_tab_label = "discuss"; │ │20 const events_tab_label = "events"; │ │21 -const new_repo_tab_label = "new repo"; │ │21 +const new_repo_tab_label = "new"; │ │22 +const new_repo_tab_bottom_label = "repo"; │ │23 │ │24 pub const AuthTab = @import("./../AuthTab.zig");│ │25 │ ╰────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │310 │ │311 // new repo tab. repos are created for the logged-in user. │ │312 if (session.data.user_id != null) { │ │312 - var text_box = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │313 + var text_box = try wgt.TextBox.init(allocator, new_repo_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none, .bottom_label = new_repo_tab_bottom_label });│ │314 errdefer text_box.deinit(allocator); │ │315 text_box.getFocus().mode = .all; │ │316 text_box.getFocus().kind = .{ .custom = new_repo_link }; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │319 try tabs_box.children.put(allocator, text_box.getFocus().id, .{ │ │320 .widget = .{ .text_box = text_box }, │ │321 .rect = null, │ │321 - .min_size = .{ .width = new_repo_tab_label.len + 2, .height = null }, │ │322 + .min_size = .{ .width = @max(new_repo_tab_label.len, new_repo_tab_bottom_label.len) + 2, .height = null },│ │323 }); │ │324 } │ │325 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/User/Header.zig│ ╰──────────────────────╯ ╭────────────────────────────────────────────────────╮ │11 │ │12 const repos_tab_label = "repos"; │ │13 const forks_tab_label = "forks"; │ │14 -const new_repo_tab_label = "new repo"; │ │14 +const new_repo_tab_label = "new"; │ │15 +const new_repo_tab_bottom_label = "repo"; │ │16 │ │17 pub const AuthTab = @import("./../AuthTab.zig");│ │18 │ ╰────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯