diff --git a/web/src/components/clipboard/FileTransfer.svelte b/web/src/components/clipboard/FileTransfer.svelte index e403b333..c875e02e 100644 --- a/web/src/components/clipboard/FileTransfer.svelte +++ b/web/src/components/clipboard/FileTransfer.svelte @@ -108,7 +108,7 @@ {/each} - - {isCreating ? 'Creating...' : $t("clipboard.create_session")} + {isCreating ? $t("clipboard.creating") : $t("clipboard.create_session")} @@ -53,18 +53,17 @@

{$t("clipboard.join_session")}

{$t("clipboard.join_description")}

-
- - {isJoining ? 'Joining...' : $t("clipboard.join_session")} + {isJoining ? $t("clipboard.joining") : $t("clipboard.join_session")}
@@ -74,23 +73,20 @@
-
-
- Session ID: +
+ {$t("clipboard.session_id")}: {sessionId}
- {#if isCreator && sessionId && !peerConnected && qrCodeUrl} -
-

Scan to join:

+ {#if isCreator && sessionId && !peerConnected && qrCodeUrl}
+

{$t("clipboard.scan_qr")}

QR Code
{/if} - -
+
- {peerConnected ? 'Connected' : 'Waiting for peer...'} + {peerConnected ? $t("clipboard.peer_connected") : $t("clipboard.waiting_peer")}
@@ -107,34 +103,66 @@ diff --git a/web/src/routes/clipboard/+page.svelte b/web/src/routes/clipboard/+page.svelte index e9b97001..88e8b6a3 100644 --- a/web/src/routes/clipboard/+page.svelte +++ b/web/src/routes/clipboard/+page.svelte @@ -231,17 +231,7 @@ on:sendText={handleSendText} on:clearText={handleClearText} bind:textContent - /> - {/if} -
- {/if} - - {#if isConnected} - -
- - {$t("clipboard.disconnect")} - + /> {/if}
{/if}
@@ -357,18 +347,7 @@ .tab-content:hover { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08); - border-color: rgba(255, 255, 255, 0.12); - } - - .disconnect-section { - text-align: center; - margin-top: 3rem; - padding: 2rem; - background: rgba(255, 255, 255, 0.03); - border-radius: 15px; - border: 1px solid rgba(255, 255, 255, 0.05); - backdrop-filter: blur(5px); - } + border-color: rgba(255, 255, 255, 0.12); } /* Enhanced card-like sections */ :global(.card) {