diff options
Diffstat (limited to 'polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html')
-rw-r--r-- | polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html b/polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html index a03f6cc9d6..e6f37cf282 100644 --- a/polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html +++ b/polygerrit-ui/app/elements/change/gr-comment-list/gr-comment-list.html @@ -16,19 +16,27 @@ limitations under the License. <link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html"> <link rel="import" href="../../../behaviors/gr-path-list-behavior/gr-path-list-behavior.html"> +<link rel="import" href="../../../behaviors/gr-url-encoding-behavior.html"> <link rel="import" href="../../../bower_components/polymer/polymer.html"> +<link rel="import" href="../../core/gr-navigation/gr-navigation.html"> <link rel="import" href="../../shared/gr-formatted-text/gr-formatted-text.html"> +<link rel="import" href="../../../styles/shared-styles.html"> + +<!-- + The custom CSS property `--gr-formatted-text-prose-max-width` controls the max + width of formatted text blocks that are not code. +--> <dom-module id="gr-comment-list"> <template> - <style> + <style include="shared-styles"> :host { display: block; word-wrap: break-word; } .file { border-top: 1px solid #ddd; - font-weight: bold; + font-family: var(--font-family-bold); margin: 10px 0 3px; padding: 10px 0 5px; } @@ -43,13 +51,13 @@ limitations under the License. } .message { flex: 1; - max-width: 80ch; + --gr-formatted-text-prose-max-width: 80ch; } </style> <template is="dom-repeat" items="[[_computeFilesFromComments(comments)]]" as="file"> <div class="file"> <a href$="[[_computeFileDiffURL(file, changeNum, patchNum)]]"> - [[_computeFileDisplayName(file)]] + [[computeDisplayPath(file)]] </a>: </div> <template is="dom-repeat" @@ -69,7 +77,7 @@ limitations under the License. class="message" no-trailing-margin content="[[comment.message]]" - config="[[projectConfig.commentlinks]]"></gr-formatted-text> + config="[[commentLinks]]"></gr-formatted-text> </div> </template> </template> |