diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 16 | ||||
| -rw-r--r-- | src/components/user_profile/user_profile.js | 6 | ||||
| -rw-r--r-- | src/components/user_profile/user_profile.vue | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 3804302b..0e820182 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -142,7 +142,7 @@ border-bottom-right-radius: 0; .panel-heading { - padding: .6em 0; + padding: .5em 0; text-align: center; box-shadow: none; } @@ -226,10 +226,11 @@ } } - .user-name{ + .user-name { text-overflow: ellipsis; overflow: hidden; - flex: 1 0 auto; + flex: 1 1 auto; + margin-right: 1em; } .user-screen-name { @@ -245,6 +246,10 @@ .dailyAvg { min-width: 1px; flex: 0 0 auto; + margin-left: 1em; + font-size: 0.7em; + color: $fallback--text; + color: var(--text, $fallback--text); } .handle { @@ -381,11 +386,6 @@ } } -.dailyAvg { - margin-left: 1em; - font-size: 0.7em; - color: #CCC; -} .floater { } </style> diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index d6edd25a..245d55ca 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -27,7 +27,7 @@ const UserProfile = { return this.$route.params.id || this.user.id }, userName () { - return this.$route.params.name + return this.$route.params.name || this.user.screen_name }, friends () { return this.user.friends @@ -74,7 +74,7 @@ const UserProfile = { } this.$store.dispatch('stopFetching', 'user') this.$store.commit('clearTimeline', { timeline: 'user' }) - this.$store.dispatch('startFetching', ['user', this.userName]) + this.$store.dispatch('startFetching', ['user', this.fetchBy]) }, userId () { if (!this.isExternal) { @@ -82,7 +82,7 @@ const UserProfile = { } this.$store.dispatch('stopFetching', 'user') this.$store.commit('clearTimeline', { timeline: 'user' }) - this.$store.dispatch('startFetching', ['user', this.userId]) + this.$store.dispatch('startFetching', ['user', this.fetchBy]) }, user () { if (this.user.id && !this.user.followers) { diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 15f7d44f..265fc65b 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -3,7 +3,7 @@ <div v-if="user.id" class="user-profile panel panel-default"> <user-card-content :user="user" :switcher="true" :selected="timeline.viewing"></user-card-content> <tab-switcher> - <Timeline :label="$t('user_card.statuses')" :embedded="true" :title="$t('user_profile.timeline_title')" :timeline="timeline" :timeline-name="'user'" :user-id="userId"/> + <Timeline :label="$t('user_card.statuses')" :embedded="true" :title="$t('user_profile.timeline_title')" :timeline="timeline" :timeline-name="'user'" :user-id="fetchBy"/> <div :label="$t('user_card.followees')"> <div v-if="friends"> <user-card v-for="friend in friends" :key="friend.id" :user="friend" :showFollows="true"></user-card> |
