╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │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 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯