From 8add4f359bf5255e69c60ac78ed3278d92088160 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 27 Oct 2020 16:45:24 +0900 Subject: [PATCH] :art: --- src/client/components/instance-ticker.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/components/instance-ticker.vue b/src/client/components/instance-ticker.vue index 9447e6d4c..1ce5a1c2c 100644 --- a/src/client/components/instance-ticker.vue +++ b/src/client/components/instance-ticker.vue @@ -29,9 +29,10 @@ export default defineComponent({ computed: { bg(): any { - return this.info.themeColor ? { - background: `linear-gradient(90deg, ${this.info.themeColor}, ${this.info.themeColor + '00'})` - } : null; + const themeColor = this.info.themeColor || '#777777'; + return { + background: `linear-gradient(90deg, ${themeColor}, ${themeColor + '00'})` + }; } } });