your personal website on atproto - mirror blento.app

small fixes

Florian 2fa92843 9444b37d

+10 -4
+3 -1
docs/Beta.md
··· 30 30 31 31 - show social icon instead of favicon in link card if platform found for link 32 32 33 - - when adding images try to add them in a size that best fits aspect ratio 33 + - when adding images try to add them in a size that best fits aspect ratio 34 + 35 + - onboarding
+2
src/lib/cards/LinkCard/EditingLinkCard.svelte
··· 39 39 } 40 40 } 41 41 42 + $inspect(hasFetched); 43 + 42 44 $effect(() => { 43 45 if (hasFetched !== false || isFetchingMetadata) { 44 46 return;
+2 -1
src/lib/cards/LinkCard/index.ts
··· 9 9 contentComponent: LinkCard, 10 10 editingContentComponent: EditingLinkCard, 11 11 createNew: (card) => { 12 - card.cardType = 'link'; 12 + card.cardData.hasFetched = false; 13 13 }, 14 14 settingsComponent: LinkCardSettings, 15 15 ··· 28 28 onUrlHandler: (url, item) => { 29 29 item.cardData.href = url; 30 30 item.cardData.domain = new URL(url).hostname; 31 + item.cardData.hasFetched = false; 31 32 return item; 32 33 }, 33 34 urlHandlerPriority: 0
+1
src/lib/website/EditableWebsite.svelte
··· 305 305 306 306 newItem.item = item; 307 307 saveNewItem(); 308 + toast(cardDef.name + ' added!'); 308 309 break; 309 310 } 310 311 }
+2 -2
src/lib/website/Profile.svelte
··· 88 88 </div> 89 89 {:else if client.isLoggedIn} 90 90 <div> 91 - <Button href={'/' + client.profile?.handle} class="mt-2"> 91 + <Button href="/{env.PUBLIC_IS_SELFHOSTED ? '' : client.profile?.handle}/edit" class="mt-2"> 92 92 <svg 93 93 xmlns="http://www.w3.org/2000/svg" 94 94 fill="none" ··· 103 103 /> 104 104 </svg> 105 105 106 - Open Your Blento</Button 106 + Edit Your Blento</Button 107 107 > 108 108 </div> 109 109 {/if}