diff --git a/app/assets/javascripts/diffs/components/diff_file_header.vue b/app/assets/javascripts/diffs/components/diff_file_header.vue
index eeeb88bca203bc3c83055aa71496fd0486bf2dd4..7ffcc2298f1e3196691e4eb2eaa549a784497335 100644
--- a/app/assets/javascripts/diffs/components/diff_file_header.vue
+++ b/app/assets/javascripts/diffs/components/diff_file_header.vue
@@ -497,7 +497,7 @@ export default {
       <gl-button
         v-gl-tooltip.hover
         v-safe-html="submoduleDiffCompareLinkText"
-        class="submodule-compare"
+        class="submodule-compare gl-inline-block"
         :title="$options.i18n.compareButtonLabel"
         :aria-label="$options.i18n.compareButtonLabel"
         :href="diffFile.submodule_compare.url"