fix: home screen menu padding
This commit is contained in:
parent
794f8be2be
commit
ea5843bc2c
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ fn add_menu_command(self: *Self, command_name: []const u8, description: []const
|
||||||
_ = try writer.write(leader);
|
_ = try writer.write(leader);
|
||||||
try writer.print(" :{s}", .{hint});
|
try writer.print(" :{s}", .{hint});
|
||||||
const label = fis.getWritten();
|
const label = fis.getWritten();
|
||||||
self.menu_w = @max(self.menu_w, label.len + 1);
|
self.menu_w = @max(self.menu_w, label.len + 1 + menu.container.style.padding.left + menu.container.style.padding.right);
|
||||||
}
|
}
|
||||||
|
|
||||||
var value = std.ArrayList(u8).init(self.allocator);
|
var value = std.ArrayList(u8).init(self.allocator);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue