tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
20
fork
atom
overview
issues
pulls
pipelines
add mail icon
Florian
2 weeks ago
8b5c8c33
73585ddd
+16
-2
2 changed files
expand all
collapse all
unified
split
src
lib
cards
BigSocialCard
index.ts
EmbedCard
index.ts
+15
-1
src/lib/cards/BigSocialCard/index.ts
···
147
148
germ: /(?:ger\.mx)/i,
149
150
-
tangled: /(?:tangled\.org)/i
0
0
151
};
152
153
export const platformsData: Record<string, SimpleIcon> = {
···
206
<rect width="24" height="24" fill="white"/>
207
</clipPath>
208
</defs>
0
0
0
0
0
0
0
0
0
0
0
0
209
</svg>`
210
},
211
···
147
148
germ: /(?:ger\.mx)/i,
149
150
+
tangled: /(?:tangled\.org)/i,
151
+
152
+
mail: /(?:mailto:)/i
153
};
154
155
export const platformsData: Record<string, SimpleIcon> = {
···
208
<rect width="24" height="24" fill="white"/>
209
</clipPath>
210
</defs>
211
+
</svg>`
212
+
},
213
+
214
+
mail: {
215
+
slug: 'mail',
216
+
path: '',
217
+
title: 'Mail',
218
+
hex: '0a0a0a',
219
+
source: '',
220
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
221
+
<path d="M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z" />
222
+
<path d="M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z" />
223
</svg>`
224
},
225
+1
-1
src/lib/cards/EmbedCard/index.ts
···
14
card.mobileW = 8;
15
},
16
17
-
canChange: (item) => Boolean(item.cardData.href),
18
19
change: (item) => {
20
return item;
···
14
card.mobileW = 8;
15
},
16
17
+
canChange: (item) => Boolean(item.cardData.href && !item.cardData.href.startsWith('mailto:')),
18
19
change: (item) => {
20
return item;