Small fixes and better mobile layout

This commit is contained in:
Alicia Sykes
2021-04-18 16:18:32 +01:00
parent bd138bed56
commit 628f7f2868
6 changed files with 36 additions and 12 deletions

View File

@@ -54,7 +54,8 @@ export default {
/* Checks if the icon is from a local image, remote URL, SVG or font-awesome */
determineImageType(img) {
let imgType = '';
if (this.isUrl(img)) imgType = 'url';
if (!img) imgType = 'none';
else if (this.isUrl(img)) imgType = 'url';
else if (this.isImage(img)) imgType = 'img';
else if (img.substr(4) === ('.svg' || '.SVG')) imgType = 'svg';
else if (img.includes('fa-')) imgType = 'font-awesome';