diff --git a/static/style.css b/static/style.css index 4365e62..099606a 100644 --- a/static/style.css +++ b/static/style.css @@ -11,6 +11,7 @@ html { white-space: pre; max-width: 662px; position: relative; + border-radius: 8px; } #chat-messages .message-content pre code { @@ -23,10 +24,6 @@ html { position: absolute; top: 5px; right: 5px; - cursor: pointer; - border: none; - border-radius: 5px; - padding: 5px 10px; } .content { diff --git a/utils.go b/utils.go index c7b64f3..a2adfdb 100644 --- a/utils.go +++ b/utils.go @@ -25,7 +25,7 @@ func markdownToHTML(markdownText string) string { } func addCopyButtonsToCode(htmlContent string) string { - buttonHTML := `` + buttonHTML := `` // Regular expression pattern to match
elements and insert the button right before
pattern := `(]*>)`
diff --git a/views/layouts/main.html b/views/layouts/main.html
index d26ff71..8be7c1f 100644
--- a/views/layouts/main.html
+++ b/views/layouts/main.html
@@ -22,6 +22,71 @@
{{embed}}
+
+