summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-10-27 16:45:24 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-10-27 16:45:24 +0900
commit8add4f359bf5255e69c60ac78ed3278d92088160 (patch)
tree2332beea5af7b25bbbef5dcf4cfd0431bb348073 /src/client
parentリモートインスタンス情報を強制更新するAPIを追加 (diff)
downloadmisskey-8add4f359bf5255e69c60ac78ed3278d92088160.tar.gz
misskey-8add4f359bf5255e69c60ac78ed3278d92088160.tar.bz2
misskey-8add4f359bf5255e69c60ac78ed3278d92088160.zip
:art:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/instance-ticker.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/components/instance-ticker.vue b/src/client/components/instance-ticker.vue
index 9447e6d4c3..1ce5a1c2c1 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'})`
+ };
}
}
});