diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 12:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 12:08:32 +0300 |
commit | 2ee5991b42717969af93cb30d863aafab04dff8a (patch) | |
tree | c09c0b7b4d02ceb9d6ac090c1ccfb93effb8a368 /app/assets/javascripts/vue_shared/components | |
parent | 6b1ba27ef7373815ea29dc5b80eab846c8acd022 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_row.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_row.vue b/app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_row.vue index 97d93eaaf3f..112bd03b49b 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_row.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/suggestion_diff_row.vue @@ -8,6 +8,9 @@ export default { }, }, computed: { + displayAsCell() { + return !(this.line.rich_text || this.line.text); + }, lineType() { return this.line.type; }, @@ -23,11 +26,9 @@ export default { <td class="diff-line-num new_line border-top-0 border-bottom-0" :class="lineType"> {{ line.new_line }} </td> - <td class="line_content" :class="lineType"> + <td class="line_content" :class="[{ 'd-table-cell': displayAsCell }, lineType]"> <span v-if="line.rich_text" v-html="line.rich_text"></span> <span v-else-if="line.text">{{ line.text }}</span> - <!-- TODO: replace this hack with zero-width whitespace when we have rich_text from BE --> - <span v-else>​</span> </td> </tr> </template> |