Skip to content

Commit 66e9905

Browse files
committed
fix widget operations
1 parent 721f4fc commit 66e9905

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

snippets/widget.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export function KnowrithmWidget() {
3434
},
3535
assets: {
3636
scriptUrl: "https://app.knowrithm.org/api/widget.js",
37-
styleUrl: "https://minio.knowrithm.org/knowrithm-bucket/chat-widget.css"
37+
// Use custom CSS that scopes widget styles and avoids global overrides
38+
styleUrl: "/styles/chat-widget-custom.css"
3839
}
3940
};
4041

styles/chat-widget-custom.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
/* Widget Container */
2121
.ai-chat-widget-container {
2222
position: fixed;
23-
z-index: 9999;
23+
z-index: 10;
24+
/* ensure widget stays behind navigation bars */
2425
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
2526
}
2627

0 commit comments

Comments
 (0)