diff --git a/src/routes/estimation/[roomId]/+page.svelte b/src/routes/estimation/[roomId]/+page.svelte index b226aae..14cbe93 100644 --- a/src/routes/estimation/[roomId]/+page.svelte +++ b/src/routes/estimation/[roomId]/+page.svelte @@ -142,14 +142,21 @@ onMount(() => { socket = connectToWebSocket(data.roomId, onMessageReceived); }); + + async function copyToClipboard() { + try { + await navigator.clipboard.writeText(window.location.href); + alert('Room link copied to clipboard!'); + } catch (err) { + console.error('Failed to copy: ', err); + } + } {#if showModal} {/if} - -
@@ -169,6 +176,10 @@ {/if}
+ + {#if Object.keys(estimateGroups).length > 0} @@ -182,7 +193,7 @@ justify-content: center; margin-bottom: 1em; } - + .button { appearance: none; border: 1px solid rgba(27, 31, 35, 0.15); @@ -230,4 +241,19 @@ .button-red:hover { background-color: #a2021f; } + + .button-white { + background-color: #ffffff; + color: black; + } + + .button-white:hover { + background-color: #E6E6E6; + } + + #copy-link-btn { + position: fixed; + top: 10px; + right: 10px; + }