From 45e6d5a60031c4ba4ed2338ca1f153ec6b698eb5 Mon Sep 17 00:00:00 2001 From: Mason Payne Date: Sat, 8 Feb 2025 12:18:24 -0700 Subject: [PATCH] add a few quality of life changes copy and paste and save buttons ability to set the system prompt --- index.html | 122 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 110 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index bab85e1..978ca89 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ width: 25%; max-width: 300px; background: #fff; padding: 0.5rem; box-shadow: 0 0 10px rgba(0,0,0,0.1); overflow-y: auto; } - @media (max-width: 767.98px) { .sidebar { display: none; } } + .settings { margin-bottom: 1rem; } .chat-container { flex: 1; display: flex; flex-direction: column; background: #fff; padding: 1rem; box-shadow: 0 0 10px rgba(0,0,0,0.1); @@ -31,6 +31,7 @@ .assistant { background: #f8d7da; text-align: left; } pre { max-width: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-x: auto; background: #2d2d2d; color: #f8f8f2; padding: 0.5rem; border-radius: 5px; } + .code-buttons { text-align: right; margin-top: 5px; } .conversation-item { padding: 0.5rem; cursor: pointer; border-bottom: 1px solid #ddd; position: relative; } .conversation-item:hover, .conversation-item.active { background: #f0f0f0; } .delete-btn { position: absolute; right: 5px; top: 5px; background: transparent; border: none; color: #dc3545; font-size: 1rem; } @@ -48,9 +49,15 @@
-