�� Refactor CSS to use constants for media queries

This commit is contained in:
Alicia Sykes
2021-04-20 15:12:58 +01:00
parent 33127ab414
commit 7c016ac2e8
8 changed files with 27 additions and 17 deletions

View File

@@ -50,8 +50,11 @@ export default {
getInitialTheme() {
return this.appConfig.theme || '';
},
/* Gets user themes if available */
getUserThemes() {
return this.appConfig.cssThemes || [];
const userThemes = this.appConfig.cssThemes || [];
if (typeof userThemes === 'string') return [userThemes];
return userThemes;
},
},
data() {