Compare commits

...

1 Commits

Author SHA1 Message Date
Superset Dev
f055e94cff fix(sqllab): preserve whitespace in grid result cells
ag-Grid's default cell style collapses runs of whitespace, which
misrepresents whitespace-sensitive values such as option symbols in
query/result tables. Apply white-space: pre to .ag-cell-value so the
displayed value matches the underlying data.

Fixes: #36042

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-16 22:43:31 -07:00

View File

@@ -167,6 +167,14 @@ export function GridTable<RecordType extends object>({
overflow: hidden;
}
/* Preserve significant whitespace within cell values (e.g. option
symbols and other whitespace-sensitive data). ag-Grid's default
collapses runs of spaces, which can misrepresent the underlying
value. */
.ag-cell-value {
white-space: pre;
}
& [role='columnheader']:hover .customHeaderAction {
display: flex;
}