diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 09:10:49 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 09:10:49 +0000 |
commit | 9c07ab8c6975de1046bd65b36f3d34f5408dac13 (patch) | |
tree | f17da714b7b4ea77aa16ebfae62766a694247c7e /app/assets/javascripts/diffs/components/diff_row.vue | |
parent | 38780f3d2f18d9e07fe3e7427ccc964de267dbb4 (diff) | |
download | gitlab-ce-9c07ab8c6975de1046bd65b36f3d34f5408dac13.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_row.vue')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_row.vue | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_row.vue b/app/assets/javascripts/diffs/components/diff_row.vue index 0b11895097e..9e1385853b6 100644 --- a/app/assets/javascripts/diffs/components/diff_row.vue +++ b/app/assets/javascripts/diffs/components/diff_row.vue @@ -58,7 +58,7 @@ export default { classNameMap() { return { [CONTEXT_LINE_CLASS_NAME]: this.line.isContextLineLeft, - [PARALLEL_DIFF_VIEW_TYPE]: true, + [PARALLEL_DIFF_VIEW_TYPE]: !this.inline, }; }, parallelViewLeftLineType() { @@ -148,7 +148,7 @@ export default { <div :class="classNameMapCellLeft" data-testid="leftLineNumber" - class="diff-td diff-line-num old_line" + class="diff-td diff-line-num" > <template v-if="!isLeftConflictMarker"> <span @@ -189,7 +189,7 @@ export default { " /> </div> - <div v-if="inline" :class="classNameMapCellLeft" class="diff-td diff-line-num old_line"> + <div v-if="inline" :class="classNameMapCellLeft" class="diff-td diff-line-num"> <a v-if="line.left.new_line && line.left.type !== $options.CONFLICT_OUR" :data-linenumber="line.left.new_line" @@ -202,8 +202,8 @@ export default { <div :id="line.left.line_code" :key="line.left.line_code" - :class="parallelViewLeftLineType" - class="diff-td line_content with-coverage parallel left-side" + :class="[parallelViewLeftLineType, { parallel: !inline }]" + class="diff-td line_content with-coverage left-side" data-testid="leftContent" @mousedown="handleParallelLineMouseDown" > @@ -229,8 +229,8 @@ export default { :class="emptyCellLeftClassMap" ></div> <div - class="diff-td line_content with-coverage parallel left-side empty-cell" - :class="emptyCellLeftClassMap" + class="diff-td line_content with-coverage left-side empty-cell" + :class="[emptyCellLeftClassMap, { parallel: !inline }]" ></div> </template> </div> @@ -285,8 +285,8 @@ export default { <div :id="line.right.line_code" :key="line.right.rich_text" - :class="[line.right.type, { hll: isHighlighted }]" - class="diff-td line_content with-coverage parallel right-side" + :class="[line.right.type, { hll: isHighlighted, parallel: !inline }]" + class="diff-td line_content with-coverage right-side" @mousedown="handleParallelLineMouseDown" > <strong v-if="line.right.type === $options.CONFLICT_MARKER_THEIR">{{ @@ -311,8 +311,8 @@ export default { :class="emptyCellRightClassMap" ></div> <div - class="diff-td line_content with-coverage parallel right-side empty-cell" - :class="emptyCellRightClassMap" + class="diff-td line_content with-coverage right-side empty-cell" + :class="[emptyCellRightClassMap, { parallel: !inline }]" ></div> </template> </div> |