Now with copy button for presenter bio

This commit is contained in:
Scott Idem
2024-08-15 15:49:26 -04:00
parent fdca94b625
commit ef62b30dc9

View File

@@ -1322,6 +1322,17 @@ $: if ($lq__event_presenter_obj) {
</span>
</label>
<button
type="button"
use:clipboard={ae_tmp.biography.trim()}
class="btn btn-sm variant-ghost-warning float-right m-1"
class:hidden={ae_tmp.biography.length < 100}
title="Copy the presenter access link to the clipboard."
>
<span class="fas fa-copy mx-1"></span>
Copy Biography Text
</button>
<textarea
name="biography"
id="presenter__biography"
@@ -1332,7 +1343,6 @@ $: if ($lq__event_presenter_obj) {
rows="8" cols="70"
bind:value={ae_tmp.biography}
placeholder="Enter brief biography here"></textarea>
<!-- {/if} -->
</div>
<p>Biography length: {(ae_tmp.biography ? ae_util.number_w_commas(ae_tmp.biography.length) : 0)} characters; {(ae_tmp.biography ? ae_util.number_w_commas(ae_util.count_words(ae_tmp.biography)) : 0)} estimated words</p>