Skip to content

Commit

Permalink
Add scrollbar-width: thin to white-label
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 14, 2024
1 parent 87859e6 commit 6219651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/component/src/Styles/StyleSet/RenderMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ export default function createMarkdownStyle() {
content: "'['"
},

'& [data-math-type=block]': {
'& [data-math-type=block] math': {
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
overflowX: 'auto',
overflowY: 'clip'
overflowY: 'clip',
scrollbarWidth: 'thin'
},

'& [data-math-type=inline] math': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
/* Scrollbars */
:global(.webchat-fluent).theme :global(.webchat__basic-transcript .webchat__basic-transcript__scrollable),
:global(.webchat-fluent).theme :global(.webchat__view-code-dialog__code-body),
:global(.webchat-fluent).theme :global(.webchat__render-markdown [data-math-type='block']) {
:global(.webchat-fluent).theme :global(.webchat__render-markdown [data-math-type='block'] math) {
/* Edge uses -webkit-scrollbar if scrollbar-* is not set */
scrollbar-color: unset;
scrollbar-width: unset;
Expand Down

0 comments on commit 6219651

Please sign in to comment.