Skip to content

Commit

Permalink
Merge pull request #226 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
Features/refine chat window
  • Loading branch information
iceljc authored Sep 28, 2024
2 parents ba60946 + a8292df commit 59b975d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
background-color: rgba($primary, 0.1);
border-radius: 8px 8px 8px 0px;
overflow: hidden;
width: inherit;
width: fit-content;
max-width: 100%;

.conversation-name {
font-weight: $font-weight-semibold;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@
/** @param {string} messageId */
function directToLog(messageId) {
if (!!!messageId || isLite) return;
if (!!!messageId || isLite || !isLoadPersistLog) return;
highlightChatMessage(messageId);
highlightStateLog(messageId);
Expand Down Expand Up @@ -1169,7 +1169,7 @@
on:click={() => directToLog(message.message_id)}
>
<div class="ctext-wrap user-msg"
class:clickable={!isLite && (isLoadPersistLog || isLoadInstantLog)}
class:clickable={!isLite && isLoadPersistLog}
id={`user-msg-${message.message_id}`}
>
<div class="text-start fw-bold">{@html replaceNewLine(message.text)}</div>
Expand Down

0 comments on commit 59b975d

Please sign in to comment.