This commit is contained in:
syuilo 2019-04-08 19:56:42 +09:00
parent 3a26acbdb2
commit fab0cc51b3
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
13 changed files with 17 additions and 24 deletions

View file

@ -65,7 +65,7 @@ export default Vue.extend({
style(): any {
if (this.user.bannerUrl == null) return {};
return {
backgroundColor: this.user.bannerColor && this.user.bannerColor.length == 3 ? `rgb(${ this.user.bannerColor.join(',') })` : null,
backgroundColor: this.user.bannerColor,
backgroundImage: `url(${ this.user.bannerUrl })`
};
},