╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │906 }, │ │907 .custom => |custom| { │ │908 if (std.mem.eql(u8, "submit", custom)) { │ │909 - // inside the dashed border the TUI cells draw around the button. │ │910 - const inner_left = r.x + 1; │ │911 - const inner_top = r.y + 1; │ │912 - const inner_width = if (r.size.width > 2) r.size.width - 2 else 0; │ │913 - const inner_height = if (r.size.height > 2) r.size.height - 2 else 0; │ │909 try out.appendSlice(allocator, "<button type=\"submit\" data-focus-id=\""); │ │910 var id_buf: [32]u8 = undefined; │ │911 try out.appendSlice(allocator, try std.fmt.bufPrint(&id_buf, "{d}", .{inner_id}));│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │912 try out.appendSlice(allocator, "\" style=\"left:"); │ │913 var pos_buf: [128]u8 = undefined; │ │919 - try out.appendSlice(allocator, try std.fmt.bufPrint(&pos_buf, "{d}ch;top:{d}em;width:{d}ch;height:{d}em", .{ inner_left, inner_top, inner_width, inner_height }));│ │914 + try out.appendSlice(allocator, try std.fmt.bufPrint(&pos_buf, "{d}ch;top:{d}em;width:{d}ch;height:{d}em", .{ r.x, r.y, r.size.width, r.size.height })); │ │915 try out.appendSlice(allocator, "\"></button>"); │ │916 } │ │917 }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯