╭ changed ─────────────╮ │src/ui/User/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │42 errdefer title_view.deinit(allocator); │ │43 title_view.getFocus().focusable = true; │ │44 title_view.getFocus().kind = .{ .custom = "a:/" }; │ │45 + // shrink the title when there is not enough space │ │46 try box.children.put(allocator, title_view.getFocus().id, .{│ │47 .widget = .{ .title = title_view }, │ │48 .rect = null, │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │48 - .min_size = .{ .width = data.title.width, .height = null },│ │49 + .min_size = null, │ │50 + .shrink = true, │ │51 }); │ │52 } │ │53 │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │92 try box.children.put(allocator, spacer.getFocus().id, .{│ │93 .widget = .{ .spacer = spacer }, │ │94 .rect = null, │ │93 - .min_size = .{ .width = 1, .height = null }, │ │95 + .min_size = null, │ │96 }); │ │97 } │ │98 │ ╰────────────────────────────────────────────────────────────────────────╯