From 1090cd12eef521f7c91b45af6c874d28eabb1457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 20 Jan 2024 16:32:56 +0100 Subject: [PATCH] thurtle: Add copy button --- src/web/thurtle/thurtle.css | 4 ++ src/web/thurtle/thurtle.tsx | 76 +++++++++++++++++++++++++++++++++---- 2 files changed, 73 insertions(+), 7 deletions(-) diff --git a/src/web/thurtle/thurtle.css b/src/web/thurtle/thurtle.css index aebda5d..06f6943 100644 --- a/src/web/thurtle/thurtle.css +++ b/src/web/thurtle/thurtle.css @@ -64,3 +64,7 @@ label { .right-pane { flex: 2; } + +.copy-url-btn { + border: thin solid rgb(206, 212, 218) !important; +} diff --git a/src/web/thurtle/thurtle.tsx b/src/web/thurtle/thurtle.tsx index 9933c17..c7ea82c 100644 --- a/src/web/thurtle/thurtle.tsx +++ b/src/web/thurtle/thurtle.tsx @@ -76,6 +76,46 @@ function About() { const editor = new Editor(); +const clipboardIcon = ( + + + + +); + +const clipboardCheckIcon = ( + + + + +); + const rootEl = (