diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-13 18:10:43 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-13 18:10:43 +0100 |
commit | ceed364cb1ade47a29ccf698074be01b520fc82c (patch) | |
tree | fd1ddf447d186ee5e4c8977e5b937e4161392b4c /g4f/gui | |
parent | Improve FreeChatgpt Provider (diff) | |
download | gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar.gz gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar.bz2 gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar.lz gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar.xz gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.tar.zst gpt4free-ceed364cb1ade47a29ccf698074be01b520fc82c.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/gui/client/css/style.css | 1 | ||||
-rw-r--r-- | g4f/gui/client/js/chat.v1.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/g4f/gui/client/css/style.css b/g4f/gui/client/css/style.css index 59464272..2d4c9857 100644 --- a/g4f/gui/client/css/style.css +++ b/g4f/gui/client/css/style.css @@ -566,6 +566,7 @@ select { animation: blink 0.8s infinite; width: 7px; height: 15px; + display: inline-block; } @keyframes blink { diff --git a/g4f/gui/client/js/chat.v1.js b/g4f/gui/client/js/chat.v1.js index e763f52d..ccc9461b 100644 --- a/g4f/gui/client/js/chat.v1.js +++ b/g4f/gui/client/js/chat.v1.js @@ -104,7 +104,7 @@ const ask_gpt = async () => { </div> <div class="content" id="gpt_${window.token}"> <div class="provider"></div> - <div class="content_inner"><div id="cursor"></div></div> + <div class="content_inner"><span id="cursor"></span></div> </div> </div> `; @@ -168,7 +168,7 @@ const ask_gpt = async () => { } if (error) { console.error(error); - content_inner.innerHTML = "An error occured, please try again, if the problem persists, please use a other model or provider"; + content_inner.innerHTML += "<p>An error occured, please try again, if the problem persists, please use a other model or provider.</p>"; } else { html = markdown_render(text); html = html.substring(0, html.lastIndexOf('</p>')) + '<span id="cursor"></span></p>'; |