Removed handle from bio socials to save space.
This commit is contained in:
@@ -312,10 +312,10 @@
|
|||||||
<a
|
<a
|
||||||
v-for="social in socials"
|
v-for="social in socials"
|
||||||
:key="`social-${social.id}`"
|
:key="`social-${social.id}`"
|
||||||
|
v-tooltip="social.platform ? `${social.platform} ${env.socials.prefix[social.platform] || env.socials.prefix.default}${social.handle}` : social.url"
|
||||||
:href="getSocialUrl(social)"
|
:href="getSocialUrl(social)"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
:title="social.platform || social.url"
|
|
||||||
class="social ellipsis"
|
class="social ellipsis"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
@@ -339,7 +339,9 @@
|
|||||||
:class="`icon-social icon-${social.platform} icon-generic`"
|
:class="`icon-social icon-${social.platform} icon-generic`"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!--
|
||||||
<template v-if="social.platform">{{ env.socials.prefix[social.platform] || env.socials.prefix.default }}</template>{{ social.handle }}
|
<template v-if="social.platform">{{ env.socials.prefix[social.platform] || env.socials.prefix.default }}</template>{{ social.handle }}
|
||||||
|
-->
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -498,7 +500,7 @@ function getSocialUrl(social) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const socials = props.actor.socials.map((social) => ({
|
const socials = props.actor.socials.slice(0, 10).map((social) => ({
|
||||||
...social,
|
...social,
|
||||||
handle: social.url
|
handle: social.url
|
||||||
? new URL(social.url).hostname
|
? new URL(social.url).hostname
|
||||||
@@ -735,19 +737,23 @@ const socials = props.actor.socials.map((social) => ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.socials {
|
.socials {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
/*
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
||||||
grid-gap: 0 0;
|
grid-gap: 0 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
*/
|
||||||
gap: .25rem;
|
gap: .25rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
height: 2rem;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: .1rem .5rem;
|
justify-content: center;
|
||||||
|
padding: .75rem .75rem;
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -755,10 +761,6 @@ const socials = props.actor.socials.map((social) => ({
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
background: var(--highlight-weak-40);
|
background: var(--highlight-weak-40);
|
||||||
|
|
||||||
.icon {
|
|
||||||
margin-right: .5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-generic {
|
.icon-generic {
|
||||||
fill: var(--highlight);
|
fill: var(--highlight);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const keyMap = {
|
|||||||
isCircumcised: 'circumcised',
|
isCircumcised: 'circumcised',
|
||||||
};
|
};
|
||||||
|
|
||||||
const socialsOrder = ['onlyfans', 'twitter', 'fansly', 'loyalfans', 'manyvids', 'pornhub', 'linktree', null];
|
const socialsOrder = ['onlyfans', 'fansly', 'twitter', 'instagram', 'loyalfans', 'manyvids', 'pornhub', 'linktree', null];
|
||||||
|
|
||||||
export function curateActor(actor, context = {}) {
|
export function curateActor(actor, context = {}) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user