diff --git a/frontend/public/themes/dark.css b/frontend/public/themes/dark.css
index e916457a..1ee5f1ac 100644
--- a/frontend/public/themes/dark.css
+++ b/frontend/public/themes/dark.css
@@ -16,7 +16,7 @@ body {
#loading {
background: var(--background);
}
-#loading .spinner div {
+#loading .spinner div, #previewer .loading .spinner div {
background: var(--icon);
}
diff --git a/frontend/src/components/files/Preview.vue b/frontend/src/components/files/Preview.vue
index 1294fa5f..f0a7ef02 100644
--- a/frontend/src/components/files/Preview.vue
+++ b/frontend/src/components/files/Preview.vue
@@ -5,18 +5,33 @@
close
-
-
-
-
+
+
+ {{ req.name }}
+
+
+
+
+
+
+
-
-
+
+
+
+
+
@@ -76,7 +91,7 @@ export default {
}
},
computed: {
- ...mapState(['req', 'user', 'oldReq', 'jwt']),
+ ...mapState(['req', 'user', 'oldReq', 'jwt', 'loading']),
hasPrevious () {
return (this.previousLink !== '')
},
diff --git a/frontend/src/css/styles.css b/frontend/src/css/styles.css
index 2da1d242..8d486c0d 100644
--- a/frontend/src/css/styles.css
+++ b/frontend/src/css/styles.css
@@ -125,8 +125,13 @@
height: 3.7em;
}
-#previewer .action:first-of-type {
+#previewer .bar .title {
margin-right: auto;
+ padding: 0 1em;
+ line-height: 2.7em;
+ overflow: hidden;
+ word-break: break-word;
+ color: #fff;
}
#previewer .action i {
@@ -219,6 +224,11 @@
font-size: 1.2em;
}
+#previewer .loading {
+ height: 100%;
+ width: 100%;
+}
+
#editor-container #editor {
height: calc(100vh - 8.2em);
}