summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-09-08 01:07:50 +0300
committerFatih Acet <acetfatih@gmail.com>2017-09-13 23:08:18 +0300
commitd75c6135e49d5e83192019bdb4dcadfe2a4a6ff0 (patch)
treedf3d536c332463797166024e214b581d6878eacc
parentf06d370b20ffbb7b8dba83b841df053b39cf3b1a (diff)
downloadgitlab-ce-d75c6135e49d5e83192019bdb4dcadfe2a4a6ff0.tar.gz
RepoEditor: Fix empty state for image blob view.
-rw-r--r--app/assets/stylesheets/pages/repo.scss7
-rw-r--r--app/views/projects/blob/viewers/_download.html.haml2
2 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss
index 69abb13add4..cc3fbf4aa66 100644
--- a/app/assets/stylesheets/pages/repo.scss
+++ b/app/assets/stylesheets/pages/repo.scss
@@ -84,6 +84,13 @@
}
}
+ .blob-no-preview {
+ .vertical-center {
+ justify-content: center;
+ width: 100%;
+ }
+ }
+
&.edit-mode {
.blob-viewer-container {
overflow: hidden;
diff --git a/app/views/projects/blob/viewers/_download.html.haml b/app/views/projects/blob/viewers/_download.html.haml
index 6d1138f7959..253566c43be 100644
--- a/app/views/projects/blob/viewers/_download.html.haml
+++ b/app/views/projects/blob/viewers/_download.html.haml
@@ -1,5 +1,5 @@
.file-content.blob_file.blob-no-preview
- .center
+ .center.render-error.vertical-center
= link_to blob_raw_path do
%h1.light
= icon('download')