Skip to content

Commit

Permalink
Iris: Fix IRIS message rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Jan 22, 2025
1 parent dd3bda4 commit b9e968c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ <h4 class="modal-title">
@if (message.sender === IrisSender.USER) {
<div class="d-flex justify-content-end align-items-center">
@if (content.type === IrisMessageContentType.TEXT) {
<pre>
<span
[innerHTML]="(content | as: IrisTextMessageContent).textContent | htmlForMarkdown"
class="bubble-right"></span>
</pre>
<span class="bubble-right">
@for (line of (content | as: IrisTextMessageContent).textContent.split('\n'); track line) {
<div [innerHTML]="line"></div>
}
</span>
}
</div>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
}

::ng-deep pre code {
line-height: 0.8;
line-height: 1;
}
}
}
Expand Down

0 comments on commit b9e968c

Please sign in to comment.