Skip to content

Commit

Permalink
feat: add border on highlighted message box
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed May 14, 2023
1 parent 26ec0ba commit 7ead511
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Messages/ChatMessage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>
<v-card
:class="['message', message.type]"
:class="[
'message',
message.type,
message.highlight ? 'highlight-border' : '',
]"
:loading="message.done ? false : 'primary'"
>
<v-card-title v-if="message.type === 'response'" class="title">
Expand Down Expand Up @@ -109,6 +113,10 @@ export default {
text-align: left;
}
.highlight-border {
box-shadow: 0 0 0 2px rgba(var(--v-theme-primary), 1);
}
.prompt {
background-color: #95EC69;
width: fit-content;
Expand Down

0 comments on commit 7ead511

Please sign in to comment.