File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
routes/chat/[agentId]/[conversationId]/rich-content Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 2121 /** @type {boolean} */
2222 export let scrollable = false ;
2323
24- const scrollbarId = uuidv4 ();
25-
24+ const scrollbarId = ` markdown-scrollbar-${ uuidv4 ()} ` ;
2625 const options = {
2726 scrollbars: {
2827 visibility: ' auto' ,
4241 });
4342
4443 function initScrollbar () {
45- const elem = document .querySelector (` #markdown-scrollbar- ${ scrollbarId} ` );
44+ const elem = document .querySelector (` #${ scrollbarId} ` );
4645 if (elem) {
4746 // @ts-ignore
4847 const scrollbar = OverlayScrollbars (elem, options);
6564< / script>
6665
6766< div
68- id= {` markdown-scrollbar- ${ scrollbarId} ` }
67+ id= {` ${ scrollbarId} ` }
6968 class = {` markdown-container markdown-lite ${ containerClasses || ' text-white' } ` }
7069 style= {` ${ containerStyles} ` }
7170>
Original file line number Diff line number Diff line change 1111 /** @type {boolean} */
1212 export let scrollable = false ;
1313
14- const scrollbarId = uuidv4 ();
14+ const scrollbarId = ` js-interpreter-scrollbar- ${ uuidv4 ()} ` ;
1515 const options = {
1616 scrollbars: {
1717 visibility: ' auto' ,
3333 });
3434
3535 function initScrollbar () {
36- const elem = document .querySelector (` #js-interpreter-scrollbar- ${ scrollbarId} ` );
36+ const elem = document .querySelector (` #${ scrollbarId} ` );
3737 if (elem) {
3838 // @ts-ignore
3939 const scrollbar = OverlayScrollbars (elem, options);
7777 {#if message? .text }
7878 < div class = " mb-3" > {message .text }< / div>
7979 {/ if }
80- < div id= {` js-interpreter-scrollbar- ${ scrollbarId} ` }>
80+ < div id= {` ${ scrollbarId} ` }>
8181 < div id= {` chart-${ message? .message_id }` } style="min-width: 1000px; max-height: 500px;"></div>
8282 </div>
8383</div>
You can’t perform that action at this time.
0 commit comments