Skip to content

Commit 3d99d05

Browse files
committed
fix(chat): code snippets font
1 parent 6ce1588 commit 3d99d05

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/components/chat/themes/message.base.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@
2828
}
2929

3030
pre, code {
31-
@include type-style('body-1') {
32-
margin: 0;
33-
};
34-
3531
white-space: pre-wrap;
3632
word-wrap: break-word;
3733
overflow-x: auto;
34+
margin-block: unset;
3835
}
3936
}
4037

stories/chat.stories.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,6 @@ export const Basic: Story = {
479479
render: () => {
480480
messages = initialMessages;
481481
return html`
482-
<style>
483-
.shiki {
484-
code {
485-
font-family: monospace;
486-
}
487-
}
488-
</style>
489482
<igc-chat
490483
style="--igc-chat-height: calc(100vh - 32px);"
491484
.messages=${messages}

0 commit comments

Comments
 (0)