From 99d0bf3669a939fb09ac4ae5a0b2ddbace3d3f63 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 2 Nov 2026 09:15:06 -0300 Subject: Fix macOS stale tag borders, spacing and drag cursors --- src/pardes.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pardes.zig') 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 { -- cgit v1.3