[#164] serve common media files inline and fix svg content-type

This commit is contained in:
Gani Georgiev
2022-07-21 12:56:17 +03:00
parent 1a5180d7d3
commit 5d8fc939e2
15 changed files with 138 additions and 57 deletions
@@ -89,7 +89,6 @@
title={"Download " + filename}
target="_blank"
rel="noopener"
download
>
/.../{filename}
</a>
+4
View File
@@ -196,6 +196,7 @@
&.image-preview {
width: auto;
min-width: 300px;
min-height: 250px;
max-width: 70%;
max-height: 90%;
.panel-header {
@@ -220,6 +221,9 @@
.panel-content {
padding: 0;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
img {
max-width: 100%;
+1 -1
View File
@@ -789,7 +789,7 @@ export default class CommonHelper {
* @return {Boolean}
*/
static hasImageExtension(filename) {
return /\.jpg|\.jpeg|\.png|\.svg|\.webp|\.avif$/.test(filename)
return /\.jpg|\.jpeg|\.png|\.svg|\.gif|\.webp|\.avif$/.test(filename)
}
/**