diff options
| author | taehoon <th.dev91@gmail.com> | 2019-03-05 02:32:23 -0500 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-03-05 10:46:03 -0500 |
| commit | e0a66b989d8f30f6475bc04064c8c36f9f876539 (patch) | |
| tree | e057689770d93f340763d9c6eeb2900d021294e1 /src/components/user_card_content/user_card_content.js | |
| parent | 216073eb58d2928bf6fb2e187b28dac04f4ce02e (diff) | |
Re-do UserCardContent css
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
| -rw-r--r-- | src/components/user_card_content/user_card_content.js | 11 |
1 files changed, 9 insertions, 2 deletions
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 |
