Skip to content

Commit

Permalink
fix: add id for highlight text in text and chat fields
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyre committed Nov 7, 2024
1 parent e425c89 commit 39928ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
class="chat__wrapper"
:class="checkIfAreLessThanTwoRoles ? '--simple' : '--multiple'"
>
<div v-for="({ role, content: text }, index) in content" :key="index">
<div
:id="`fields-content-${name}`"
v-for="({ role, content: text }, index) in content"
:key="index"
>
<span
:class="[
'chat__item',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</BaseButton>
</BaseActionTooltip>
</div>
<div class="content-area --body1">
<div :id="`fields-content-${name}`" class="content-area --body1">
<MarkdownRenderer v-if="useMarkdown" :markdown="fieldText" />
<Sandbox v-else-if="isHTML" :content="fieldText" />
<div v-else :class="classes" v-html="fieldText" />
Expand Down

0 comments on commit 39928ed

Please sign in to comment.