Commit b011a4f1 authored by manuk's avatar manuk Committed by Commit Bot

[chrome://omnibox]: Preserve whitespace in table.

Whitespace is important for inline autocomplete, and possibly other fields.

Change-Id: I8dfcb1f2140e20b6d3365f72b9fd832b8eba9303
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739325Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684436}
parent 53929246
......@@ -727,7 +727,7 @@ cr.define('omnibox_output', function() {
*/
static renderClassifiedText_(container, string, classes) {
clearChildren(container);
OutputAnswerProperty.classify(string + '\n', classes)
OutputAnswerProperty.classify(string, classes)
.map(
({string, style}) => OutputJsonProperty.renderJsonWord(
string, OutputAnswerProperty.styleToClasses_(style)))
......
......@@ -54,6 +54,7 @@ table {
}
.body td {
white-space: pre-wrap;
word-break: break-all;
}
......@@ -62,7 +63,7 @@ table {
}
.body td.elided:not(:hover) {
white-space: nowrap;
white-space: pre;
}
.body td:not(:hover) * {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment