git.iko.soy/parseable-macos
on master help sign in
Fix overlapping columns by correcting SwiftUI modifier order in LogRowView (#7)

In LogRowView, .padding(.horizontal, 6) was applied after .frame(width:), causing each data cell to be 12px wider than its header counterpart. This cumulative drift made columns progressively misaligned from left to right. Moving padding before frame keeps it inside the column width, matching the header layout. https://claude.ai/code/session_01935LPLiPtHN4oWm2Z9c8V8 Co-authored-by: Claude <noreply@anthropic.com>

commit6db3705dbf62ef0e2819ac87dc974d302b918c97 authoriko <mail@iko.soy> dateSun 15 Feb 2026, 12:28 (8 months ago) parent9f30a7f
1 file changed+1−1
ParseableViewer/Views/LogTableView.swift+1−1
ParseableViewer/Views/LogTableView.swift+1−1
@@ -266,9 +266,9 @@ struct LogRowView: View {
266266 Text(value?.displayString ?? "")
267267 .font(.system(.caption, design: .monospaced))
268268 .lineLimit(1)
269− .frame(width: columnWidths[column] ?? 120, alignment: .leading)
270269 .padding(.horizontal, 6)
271270 .padding(.vertical, 3)
271+ .frame(width: columnWidths[column] ?? 120, alignment: .leading)
272272 .foregroundStyle(colorForValue(column: column, value: value))
273273 .contextMenu {
274274 Button("Copy Value") {