Adds padding to the error block

This commit is contained in:
Filipa Lacerda 2018-04-16 18:48:53 +01:00
parent 4b2ff00392
commit e49aaf838a
No known key found for this signature in database
GPG key ID: 9CA3FDE4D1E2F1C8
3 changed files with 6 additions and 3 deletions

View file

@ -160,6 +160,10 @@
}
}
}
.diff-loading-error-block {
padding: $gl-padding $gl-padding*2;
}
}
.image {

View file

@ -768,7 +768,6 @@
// wich causes a blank button when it's disabled and hovering
// The css in here is the boostrap one
.btn-link-retry {
&[disabled] {
cursor: not-allowed;
filter: alpha(opacity=65);
@ -781,4 +780,4 @@
text-decoration: none;
}
}
}
}

View file

@ -30,7 +30,7 @@
%td.new_line.diff-line-num
%td.line_content.js-success-lazy-load
.js-code-placeholder
%td.line_content.js-error-lazy-load-diff.hidden
%td.js-error-lazy-load-diff.hidden.diff-loading-error-block
- button = button_tag(_("Try again"), class: "btn-link btn-link-retry btn-no-padding js-toggle-lazy-diff-retry-button")
= _("Unable to load the diff. %{button_try_again}").html_safe % { button_try_again: button}
= render "discussions/diff_discussion", discussions: [discussion], expanded: true