@@ -149,6 +149,7 @@ struct LogTableView: View {
149 let columns: [String]
149 let columns: [String]
150 @Binding var selectedRecord: LogRecord?
150 @Binding var selectedRecord: LogRecord?
151 var isLoading: Bool = false
151 var isLoading: Bool = false
152+ var wrapText: Bool = false
152 var onCellFilter: ((_ column: String, _ value: JSONValue?, _ exclude: Bool) -> Void)?
153 var onCellFilter: ((_ column: String, _ value: JSONValue?, _ exclude: Bool) -> Void)?
153 var onMoveColumn: ((String, String) -> Void)?
154 var onMoveColumn: ((String, String) -> Void)?
154 @State private var sortColumn: String?
155 @State private var sortColumn: String?
@@ -188,6 +189,7 @@ struct LogTableView: View {
188 columnWidths: columnWidths,
189 columnWidths: columnWidths,
189 isSelected: selectedIndex == index,
190 isSelected: selectedIndex == index,
190 isAlternate: index % 2 == 1,
191 isAlternate: index % 2 == 1,
191 onCellFilter: onCellFilter
193 onCellFilter: onCellFilter
193 .onTapGesture {
195 .onTapGesture {
@@ -529,18 +531,19 @@ struct LogRowView: View {
529 let columnWidths: [String: CGFloat]
531 let columnWidths: [String: CGFloat]
530 let isSelected: Bool
532 let isSelected: Bool
531 let isAlternate: Bool
533 let isAlternate: Bool
534+ var wrapText: Bool = false
532 var onCellFilter: ((_ column: String, _ value: JSONValue?, _ exclude: Bool) -> Void)?
535 var onCellFilter: ((_ column: String, _ value: JSONValue?, _ exclude: Bool) -> Void)?
534 var body: some View {
537 var body: some View {
535− HStack(spacing: 0) {
538+ HStack(alignment: .top, spacing: 0) {
536 ForEach(columns, id: \.self) { column in
539 ForEach(columns, id: \.self) { column in
537 let value = record[column]
540 let value = record[column]
538 Text(value?.displayString ?? "")
541 Text(value?.displayString ?? "")
539 .font(.system(.caption, design: .monospaced))
542 .font(.system(.caption, design: .monospaced))
540− .lineLimit(1)
543+ .lineLimit(wrapText ? nil : 1)
541 .padding(.horizontal, 6)
544 .padding(.horizontal, 6)
542 .padding(.vertical, 3)
545 .padding(.vertical, 3)
543− .frame(width: columnWidths[column] ?? 120, alignment: .leading)
546+ .frame(width: columnWidths[column] ?? 120, alignment: .topLeading)
544 .foregroundStyle(colorForValue(column: column, value: value))
547 .foregroundStyle(colorForValue(column: column, value: value))
545 .contextMenu {
548 .contextMenu {
546 Button("Copy Value") {
549 Button("Copy Value") {