Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase font-size and make UI better #292

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion llm_demo/static/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ body {

.chat-header {
position: relative;
min-width: 600px;
min-width: 472px;
font-size: 28px;
font-weight: 500;
text-align: center;
Expand All @@ -48,6 +48,11 @@ body {
padding-right: 20px;
}

.chat-header .title {
position: fixed;
left: calc(50% - 70px);
}

#g_id_onload,
.g_id_signin {
position: absolute;
Expand Down Expand Up @@ -144,6 +149,10 @@ div.chat-content>span {
padding: 0;
}

.chat-bubble span {
font-size: 15px;
}

div.chat-wrapper div.chat-content div.ai span {
position: relative;
width: 70%;
Expand All @@ -158,6 +167,7 @@ div.chat-wrapper div.chat-content div.ai span {
div.chat-wrapper div.chat-content div.ai div.ticket-confirmation {
position: relative;
width: 70%;
min-width: 390px;
max-width: 400px;
height: 430px;
display: inline-block;
Expand Down
5 changes: 4 additions & 1 deletion llm_demo/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ async function submitMessage() {
logMessage("human", msg)
// Clear message
$('.chat-bar input').val('');
window.setTimeout(()=>{$('#loader-container').show()},400);
window.setTimeout(()=>{
$('#loader-container').show();
$('.chat-content').scrollTop($('.chat-content').prop("scrollHeight"));
},400);
try {
// Prompt LLM
let answer = await askQuestion(msg);
Expand Down
2 changes: 1 addition & 1 deletion llm_demo/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="container">
<div class="chat-header">
<span class="material-symbols-outlined" id="menuButton">menu</span>
<span>Cymbal Air</span>
<span class="title">Cymbal Air</span>
<span class="material-symbols-outlined" id="resetButton">refresh</span>
</div>
<div id="g_id_onload"
Expand Down