Commit a637cf59 authored by Phil Hughes's avatar Phil Hughes

Removes whitespace at bottom of inline diffs

When in inline view the class `inline` gets applied which adds
the CSS `display: inline-block;` which incorrectly adds some
extra whitespace to the bottom of diffs.
This simply changes that class to be `inline-diff-view` instead.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/330874
parent 93d73652
...@@ -133,7 +133,10 @@ export default { ...@@ -133,7 +133,10 @@ export default {
<template> <template>
<div <div
:class="[$options.userColorScheme, { inline, 'with-codequality': hasCodequalityChanges }]" :class="[
$options.userColorScheme,
{ 'inline-diff-view': inline, 'with-codequality': hasCodequalityChanges },
]"
:data-commit-id="commitId" :data-commit-id="commitId"
class="diff-grid diff-table code diff-wrap-lines js-syntax-highlight text-file" class="diff-grid diff-table code diff-wrap-lines js-syntax-highlight text-file"
@mousedown="handleParallelLineMouseDown" @mousedown="handleParallelLineMouseDown"
......
...@@ -613,7 +613,7 @@ table.code { ...@@ -613,7 +613,7 @@ table.code {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
&.inline { &.inline-diff-view {
.diff-grid-comments { .diff-grid-comments {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment