From e0a66b989d8f30f6475bc04064c8c36f9f876539 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 5 Mar 2019 02:32:23 -0500
Subject: Re-do UserCardContent css
---
src/components/user_card_content/user_card_content.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'src/components/user_card_content/user_card_content.js')
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js
index 7a7b89d4..78c7eb6b 100644
--- a/src/components/user_card_content/user_card_content.js
+++ b/src/components/user_card_content/user_card_content.js
@@ -4,7 +4,7 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
export default {
- props: [ 'user', 'switcher', 'selected', 'hideBio' ],
+ props: [ 'user', 'switcher', 'selected', 'hideBio', 'rounded', 'bordered' ],
data () {
return {
followRequestInProgress: false,
@@ -16,7 +16,14 @@ export default {
}
},
computed: {
- headingStyle () {
+ classes () {
+ return [{
+ 'user-card-content-rounded': this.rounded === true,
+ 'user-card-content-rounded-t': this.rounded === 'top', // top only
+ 'user-card-content-bordered': this.bordered
+ }]
+ },
+ style () {
const color = this.$store.state.config.customTheme.colors
? this.$store.state.config.customTheme.colors.bg // v2
: this.$store.state.config.colors.bg // v1
--
cgit v1.2.3-70-g09d2