your personal website on atproto - mirror blento.app

Merge pull request #222 from flo-bit/fix-204

fix #204

authored by

Florian and committed by
GitHub
ae294471 fc5345b6

+11 -1
+11 -1
src/lib/website/EditableProfile.svelte
··· 43 } 44 45 let profilePosition = $derived(getProfilePosition(data)); 46 </script> 47 48 <div ··· 121 <!-- Editable Name --> 122 {#if data.publication} 123 <div class="text-4xl font-bold wrap-anywhere"> 124 - <PlainTextEditor bind:contentDict={data.publication} key="name" placeholder="Your name" /> 125 </div> 126 {/if} 127 ··· 133 key="description" 134 placeholder="Something about me..." 135 class="text-base-600 dark:text-base-400 prose dark:prose-invert prose-a:text-accent-500 prose-a:no-underline" 136 /> 137 {/if} 138 </div>
··· 43 } 44 45 let profilePosition = $derived(getProfilePosition(data)); 46 + 47 + function onTextUpdate() { 48 + data = { ...data }; 49 + } 50 </script> 51 52 <div ··· 125 <!-- Editable Name --> 126 {#if data.publication} 127 <div class="text-4xl font-bold wrap-anywhere"> 128 + <PlainTextEditor 129 + bind:contentDict={data.publication} 130 + key="name" 131 + placeholder="Your name" 132 + onupdate={onTextUpdate} 133 + /> 134 </div> 135 {/if} 136 ··· 142 key="description" 143 placeholder="Something about me..." 144 class="text-base-600 dark:text-base-400 prose dark:prose-invert prose-a:text-accent-500 prose-a:no-underline" 145 + onupdate={onTextUpdate} 146 /> 147 {/if} 148 </div>