mod(zterm): update dependency and use alignment for top container's text widgets
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 49s

This commit is contained in:
2024-11-16 18:23:41 +01:00
parent 36a4e16535
commit 0bcdc72674
2 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ pub fn main() !void {
var hcontainer = Layout.HContainer.init(allocator, .{
.{
Widget.createFrom(header: {
var header = Widget.Text.init(&[1]Cell{
var header = Widget.Text.init(.left, &[1]Cell{
.{ .content = "Yves Biener", .style = .{ .bold = true } },
});
break :header &header;
@@ -57,7 +57,7 @@ pub fn main() !void {
},
.{
Widget.createFrom(name: {
var name = Widget.Text.init(&[1]Cell{
var name = Widget.Text.init(.center, &[1]Cell{
.{ .content = "File name", .style = .{ .bold = true } },
});
break :name &name;
@@ -66,7 +66,7 @@ pub fn main() !void {
},
.{
Widget.createFrom(contacts: {
var contacts = Widget.Text.init(&[1]Cell{
var contacts = Widget.Text.init(.right, &[1]Cell{
.{ .content = "Contact", .style = .{ .bold = true, .ul_style = .single } },
});
break :contacts &contacts;