Skip to content

Commit ef22b1e

Browse files
Web Inspector: Some rows with object previews are not visible in heap snapshot
https://bugs.webkit.org/show_bug.cgi?id=307579 rdar://170164522 Reviewed by Devin Rousso. `WI.DataGrid` styles include `white-space: nowrap` in an attempt to truncate with an ellipsis any long values in data grid cells. `white-space: nowrap` an inheritable property. All DOM elements created by `WI.ObjectPreviewView` nested within a data grid will inherit it. In some combinations this results in the entire object preview being hidden if its contents are long enough that they would wrap. This patch applies `white-space: normal` only to object previews nested within a data grid. * Source/WebInspectorUI/UserInterface/Views/HeapSnapshotInstancesContentView.css: (.heap-snapshot > .data-grid td .formatted-node-preview,): Canonical link: https://commits.webkit.org/307358@main
1 parent 5b1023e commit ef22b1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/WebInspectorUI/UserInterface/Views/HeapSnapshotInstancesContentView.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
.heap-snapshot > .data-grid td .object-preview {
140140
text-indent: 0; /* Do not inherit the DataGrid's indent. */
141141
line-height: initial;
142+
white-space: normal; /* Do not inherit the DataGrid's `white-space: nowrap`. */
142143
}
143144

144145
.heap-snapshot-instance-popover-content > .title {

0 commit comments

Comments
 (0)