summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index e14e9273..bd813e0e 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -291,7 +291,9 @@ pub const MAX_JUMPS = 64;
pub const TOPBAR_H: u16 = 1;
pub const COLBAR_H: u16 = 1;
pub const BOX_H: u16 = 1;
-pub const TAG_GAP: u16 = 0;
+// AppKit's square mode/grip box needs breathing room before the tag text.
+// Keep this in the core layout so selection and hit testing share the inset.
+pub const TAG_GAP: u16 = if (platform == .macos) 1 else 0;
pub const TAG_TEXT_INSET: u16 = config.GUTTER + TAG_GAP;
pub fn taglineBandOffset(row: u16, canvas_h: f32, cell_h: u32, tagline_h: u32) u32 {