diff --git a/.browserslistrc b/.browserslistrc index 7c2e6fb4b75..a608ac7c734 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -6,11 +6,11 @@ # - We should support the latest ESR of Firefox: 78, because it used quite a lot. # - We use Edge/Chrome >= 84 because 83 had an annoying bug which would mean we # need to polyfill Array.reduce: https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 -# - Safari 13 because it is the second latest major version of Safari +# - Safari 13.1 because it is the current minor version of the previous major version # # See also this epic: https://gitlab.com/groups/gitlab-org/-/epics/3957 # chrome >= 84 edge >= 84 firefox >= 78 -safari >= 13.0.4 +safari >= 13.1 diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index 8d030b33cbc..c97ef4fc868 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -224,6 +224,7 @@ .code-patterns: &code-patterns - "{package.json,yarn.lock}" + - ".browserslistrc" - "babel.config.js" - "jest.config.{base,integration,unit}.js" - ".csscomb.json" @@ -249,6 +250,7 @@ .code-backstage-patterns: &code-backstage-patterns - "{package.json,yarn.lock}" + - ".browserslistrc" - "babel.config.js" - "jest.config.{base,integration,unit}.js" - ".csscomb.json" @@ -277,6 +279,7 @@ .code-qa-patterns: &code-qa-patterns - "{package.json,yarn.lock}" + - ".browserslistrc" - "babel.config.js" - "jest.config.{base,integration,unit}.js" - ".csscomb.json" @@ -301,6 +304,7 @@ .code-backstage-qa-patterns: &code-backstage-qa-patterns - "{package.json,yarn.lock}" + - ".browserslistrc" - "babel.config.js" - "jest.config.{base,integration,unit}.js" - ".csscomb.json" diff --git a/app/assets/javascripts/diffs/components/diff_row.vue b/app/assets/javascripts/diffs/components/diff_row.vue index 734f9258c58..c310bd9f31a 100644 --- a/app/assets/javascripts/diffs/components/diff_row.vue +++ b/app/assets/javascripts/diffs/components/diff_row.vue @@ -140,6 +140,16 @@ export default { }, (line) => line.type, ), + lineContent: memoize( + (line) => { + if (line.isConflictMarker) { + return line.type === CONFLICT_MARKER_THEIR ? 'HEAD//our changes' : 'origin//their changes'; + } + + return line.rich_text; + }, + (line) => line.line_code, + ), CONFLICT_MARKER, CONFLICT_MARKER_THEIR, CONFLICT_OUR, @@ -261,15 +271,14 @@ export default {
- {{ - $options.conflictText(props.line.left) - }} - -
+ v-html="$options.lineContent(props.line.left)" + >