diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 09:40:06 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 09:40:06 +0200 |
| commit | d0f90548f5edb32225af4a1f79413a2a56d186c8 (patch) | |
| tree | 336a1b43d34518d06bdfdbdfcf6985f95c502038 /src/z | |
| parent | e7aebc79968816ea5037c332df7a3534d533b144 (diff) | |
app: add navbutton
Diffstat (limited to 'src/z')
| -rw-r--r-- | src/z/App/root.zig | 2 | ||||
| -rw-r--r-- | src/z/html/parser.zig | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/z/App/root.zig b/src/z/App/root.zig index b8ca529..8681c4a 100644 --- a/src/z/App/root.zig +++ b/src/z/App/root.zig @@ -68,7 +68,7 @@ pub fn App(comptime options: Options) type { .node("title", .{}, &.{.text(options.name)}), .void("meta", .{ .name = "viewport", - .content = "width=device-width, initial-scale=1.0", + .content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0", }), .node("style", .{}, &.{.text(options.theme)}), }), diff --git a/src/z/html/parser.zig b/src/z/html/parser.zig index c85cc16..38b28bb 100644 --- a/src/z/html/parser.zig +++ b/src/z/html/parser.zig @@ -24,6 +24,7 @@ const void_elements: std.StaticStringMap(void) = .initComptime(.{ }); pub fn fragment(buffer: []const u8) Fragment { + @setEvalBranchQuota(buffer.len * 1000); var elements: []const Element = &.{}; var buf = buffer; |