Compare commits

...

2 Commits

Author SHA1 Message Date
143c415797 0.49.3 2026-03-23 17:26:25 +01:00
e79a4d48e1 Removed handle from bio socials to save space. 2026-03-23 17:26:23 +01:00
4 changed files with 15 additions and 13 deletions

View File

@@ -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);
} }

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.49.2", "version": "0.49.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.49.2", "version": "0.49.3",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@@ -92,7 +92,7 @@
"overrides": { "overrides": {
"vite": "$vite" "vite": "$vite"
}, },
"version": "0.49.2", "version": "0.49.3",
"imports": { "imports": {
"#/*": "./*.js" "#/*": "./*.js"
} }

View File

@@ -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 {