Merged
Conversation
Contributor
floooat
commented
Mar 18, 2026
- default font (gleap standard)
- part definitions for css overwrites inside shadow tree
- fit chatbar to content width
boehlerlukas
approved these changes
Mar 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the AI chatbar UI styling/behavior to better align with Gleap’s standard font and to adjust how the chatbar/input sizes within the shadow DOM.
Changes:
- Apply Gleap’s standard font styling within the AI chatbar shadow DOM (via
gleap-font). - Adjust the AI input sizing behavior (attempting to better fit content width).
- Update the demo configuration (URLs formatting + new SDK key).
Reviewed changes
Copilot reviewed 2 out of 12 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/GleapAiChatbarManager.js |
Adds shadow-DOM font baseline and tweaks input sizing rules for the AI chatbar UI. |
demo/main.js |
Reformats demo setup and changes the hardcoded SDK key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
656
to
661
| // Create the main container div inside shadow DOM | ||
| this.innerContainer = document.createElement('div'); | ||
| this.innerContainer.className = 'gleap-ai-ui-container' + extraClasses; | ||
| this.innerContainer.className = 'gleap-font gleap-ai-ui-container' + extraClasses; | ||
| this.innerContainer.setAttribute('part', 'container'); | ||
|
|
||
| // Create the HTML structure inside shadow DOM |
Comment on lines
+3
to
+13
| Gleap.setFrameUrl('http://0.0.0.0:3001'); | ||
| Gleap.setApiUrl('http://0.0.0.0:9000'); | ||
| Gleap.setWSApiUrl('ws://0.0.0.0:9000'); | ||
|
|
||
| //Gleap.disableQueryParams(true); | ||
|
|
||
| Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV"); | ||
| Gleap.initialize('ody3fTXIIbWfipYNLCeCxJBizXVVaX9J'); | ||
|
|
||
| Gleap.on("tool-execution", (tool) => { | ||
| console.log(tool); | ||
| }); No newline at end of file | ||
| Gleap.on('tool-execution', (tool) => { | ||
| console.log(tool); | ||
| }); |
| outline: none; | ||
| box-sizing: border-box; | ||
| field-sizing: content; | ||
| max-width: 40vw; |
# Conflicts: # build/browser/index.js # build/browser/index.js.map # build/cjs/index.js # build/cjs/index.js.map # build/esm/index.mjs # build/esm/index.mjs.map # published/latest/index.js # published/latest/index.js.map
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.