fix(container): positioning; move separator options to layout struct
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 22s

Added corresponding test cases for padding, borders and corresponding
seperators.
This commit is contained in:
2025-02-26 18:21:55 +01:00
parent a293ef46da
commit ca14bc6106
13 changed files with 258 additions and 191 deletions

View File

@@ -73,11 +73,9 @@ pub fn main() !void {
};
var container = try App.Container.init(allocator, .{
.border = .{
.separator = .{ .enabled = true },
},
.layout = .{
.gap = 2,
.separator = .{ .enabled = true },
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
.direction = .horizontal,
},