Fix white-space issues with gr-linked-text
Because the white-space: pre-wrap was being set on an element far up the DOM tree, a lot of extra whitespace was being rendered as a result. Change-Id: I4238c90179793e8b0b8196b16b00b2649ad0230f
This commit is contained in:
parent
37dcf0092e
commit
4c8549e12f
@ -91,7 +91,6 @@ limitations under the License.
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-family: 'Source Code Pro', Menlo, 'Lucida Console', Monaco, monospace;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
gr-file-list {
|
||||
padding: 0 var(--default-horizontal-margin) 10px;
|
||||
@ -177,7 +176,7 @@ limitations under the License.
|
||||
</table>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<gr-linked-text content="[[_commitInfo.message]]"></gr-linked-text>
|
||||
<gr-linked-text pre content="[[_commitInfo.message]]"></gr-linked-text>
|
||||
</section>
|
||||
<gr-file-list id="fileList"
|
||||
change-num="[[_changeNum]]"
|
||||
|
@ -20,7 +20,7 @@ limitations under the License.
|
||||
<dom-module id="gr-linked-text">
|
||||
<template>
|
||||
<style>
|
||||
:host([pre]) {
|
||||
:host([pre]) div {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user