8000 server : revamp chat UI with vuejs and daisyui by ngxson · Pull Request #10175 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

server : revamp chat UI with vuejs and daisyui #10175

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

Merged
merged 24 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
lighter bubble color (less distract when reading)
  • Loading branch information
ngxson committed Nov 7, 2024
commit 64ac28984ddca5c264cd41d4b722790ba7b4bce2
8 changes: 7 additions & 1 deletion examples/server/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
@apply cursor-pointer opacity-0 group-hover:opacity-100 hover:shadow-md;
}
.chat-screen { max-width: 900px; }
/* because the default bubble color is quite dark, we will make a custom one using bg-base-300 */
.chat-bubble-base-300 {
--tw-bg-opacity: 1;
--tw-text-opacity: 1;
@apply bg-base-300 text-base-content;
}
</style>
</head>

Expand Down Expand Up @@ -127,7 +133,7 @@ <h2 class="font-bold mb-4 ml-4">Conversations</h2>
}">
<div :class="{
'chat-bubble markdown': true,
'chat-bubble-primary': msg.role === 'user',
'chat-bubble-base-300': msg.role !== 'user',
}">
<!-- textarea for editing message -->
<template v-if="editingMsg && editingMsg.id === msg.id">
Expand Down
Loading
0