diff options
| author | lambadalambda <gitgud@rogerbraun.net> | 2017-03-01 11:14:18 -0500 |
|---|---|---|
| committer | lambadalambda <gitgud@rogerbraun.net> | 2017-03-01 11:14:18 -0500 |
| commit | 51294082e079e83c7bc0df94e21e750d2a663a27 (patch) | |
| tree | 77729b5d68b52f64b8aad7b7a440b9c64c87fe71 /src/components/user_card_content/user_card_content.vue | |
| parent | 5db70a212d365550866e60d7f64b7a5b1792f236 (diff) | |
| parent | 8c43b3f505c6bee344a85dc33a927f123062a268 (diff) | |
Merge branch 'fix/improved-profile-background-color' into 'develop'
Make use of template literals instead of string concat.
See merge request !34
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 178100b8..87a445ca 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -63,15 +63,13 @@ headingStyle () { let rgb = this.$store.state.config.colors['base00'].match(/\d+/g) return { - backgroundColor: 'rgb(' + Math.floor(rgb[0] * 0.53) + ', ' + - Math.floor(rgb[1] * 0.56) + ', ' + - Math.floor(rgb[2] * 0.59) + ')', + backgroundColor: `rgb(${Math.floor(rgb[0] * 0.53)}, ${Math.floor(rgb[1] * 0.56)}, ${Math.floor(rgb[2] * 0.59)})`, backgroundImage: `url(${this.user.cover_photo})` } }, bodyStyle () { return { - background: 'linear-gradient(to bottom, rgba(0, 0, 0, 0), ' + this.$store.state.config.colors['base00'] + ' 80%)' + background: `linear-gradient(to bottom, rgba(0, 0, 0, 0), ${this.$store.state.config.colors['base00']} 80%)` } }, isOtherUser () { |
