mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
location distance in profile (#8835)
remove unused classes margin bottom Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
parent
3e58a1016a
commit
b92dcd3534
@ -34,10 +34,11 @@
|
|||||||
<!-- <base-icon name="at" data-test="at" /> -->
|
<!-- <base-icon name="at" data-test="at" /> -->
|
||||||
{{ `@${userSlug}` }}
|
{{ `@${userSlug}` }}
|
||||||
</ds-text>
|
</ds-text>
|
||||||
<ds-text v-if="user.location" align="center" color="soft" size="small">
|
<location-info
|
||||||
<base-icon name="map-marker" />
|
v-if="user.location"
|
||||||
{{ user.location.name }}
|
:location-data="user.location"
|
||||||
</ds-text>
|
class="location-info"
|
||||||
|
/>
|
||||||
<ds-text align="center" color="soft" size="small">
|
<ds-text align="center" color="soft" size="small">
|
||||||
{{ $t('profile.memberSince') }} {{ user.createdAt | date('MMMM yyyy') }}
|
{{ $t('profile.memberSince') }} {{ user.createdAt | date('MMMM yyyy') }}
|
||||||
</ds-text>
|
</ds-text>
|
||||||
@ -210,6 +211,7 @@ import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
|||||||
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
||||||
import UpdateQuery from '~/components/utils/UpdateQuery'
|
import UpdateQuery from '~/components/utils/UpdateQuery'
|
||||||
import SocialMedia from '~/components/SocialMedia/SocialMedia'
|
import SocialMedia from '~/components/SocialMedia/SocialMedia'
|
||||||
|
import LocationInfo from '~/components/UserTeaser/LocationInfo.vue'
|
||||||
|
|
||||||
const tabToFilterMapping = ({ tab, id }) => {
|
const tabToFilterMapping = ({ tab, id }) => {
|
||||||
return {
|
return {
|
||||||
@ -234,6 +236,7 @@ export default {
|
|||||||
MasonryGridItem,
|
MasonryGridItem,
|
||||||
FollowList,
|
FollowList,
|
||||||
TabNavigation,
|
TabNavigation,
|
||||||
|
LocationInfo,
|
||||||
},
|
},
|
||||||
mixins: [postListActions],
|
mixins: [postListActions],
|
||||||
transition: {
|
transition: {
|
||||||
@ -490,4 +493,14 @@ export default {
|
|||||||
margin-bottom: $space-x-small;
|
margin-bottom: $space-x-small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.location-info {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #70677e;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
|
||||||
|
> .distance {
|
||||||
|
margin-top: 2px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user