-
Notifications
You must be signed in to change notification settings - Fork 29
feat: simplify styles, give querychat components classes #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,93 +1,15 @@ | ||
| :root { | ||
| --bslib-sidebar-main-bg: #f8f8f8; | ||
| } | ||
|
|
||
| .querychat-container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| height: 100%; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .querychat-messages { | ||
| flex: 1; | ||
| overflow-y: auto; | ||
| padding: 10px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .querychat-input-container { | ||
| display: flex; | ||
| padding: 10px; | ||
| border-top: 1px solid #ccc; | ||
| } | ||
|
|
||
| .querychat-input { | ||
| flex: 1; | ||
| padding: 8px; | ||
| border: 1px solid #ccc; | ||
| border-radius: 4px; | ||
| resize: none; | ||
| min-height: 40px; | ||
| margin-right: 8px; | ||
| } | ||
|
|
||
| .querychat-send-button { | ||
| padding: 8px 16px; | ||
| background-color: #0d6efd; | ||
| color: white; | ||
| border: none; | ||
| border-radius: 4px; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .querychat-send-button:hover { | ||
| background-color: #0a58ca; | ||
| } | ||
|
|
||
| .querychat-message { | ||
| max-width: 85%; | ||
| padding: 8px 12px; | ||
| margin-bottom: 8px; | ||
| border-radius: 8px; | ||
| word-wrap: break-word; | ||
| } | ||
|
|
||
| .querychat-user-message { | ||
| align-self: flex-end; | ||
| background-color: #0d6efd; | ||
| color: white; | ||
| } | ||
|
|
||
| .querychat-assistant-message { | ||
| align-self: flex-start; | ||
| background-color: #e9ecef; | ||
| } | ||
|
|
||
| .querychat-message table { | ||
| width: 100%; | ||
| border-collapse: collapse; | ||
| margin: 10px 0; | ||
| } | ||
|
|
||
| .querychat-message table td, | ||
| .querychat-message table th { | ||
| border: 1px solid #ccc; | ||
| .querychat shiny-chat-message table td, | ||
| .querychat shiny-chat-message table th { | ||
| border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); | ||
| padding: 3px; | ||
| } | ||
|
|
||
| .querychat-message table th { | ||
| background-color: #f0f0f0; | ||
| .querychat shiny-chat-message table td { | ||
| font-family: var(--bs-font-monospace); | ||
| } | ||
|
|
||
| .querychat-message pre { | ||
| background-color: #f4f4f4; | ||
| padding: 8px; | ||
| border-radius: 4px; | ||
| overflow-x: auto; | ||
| /* querychat takes up the full sidebar, so move the collapse toggle out of the way */ | ||
| .bslib-sidebar-layout:has(.querychat-sidebar):not(.sidebar-collapsed)>.collapse-toggle { | ||
| right: 4px; | ||
| top: 4px; | ||
| } | ||
|
|
||
| .querychat-message code { | ||
| font-family: monospace; | ||
| } |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,15 @@ | ||
| :root { | ||
| --bslib-sidebar-main-bg: #f8f8f8; | ||
| } | ||
|
|
||
| .popover { | ||
| --bs-popover-header-bg: #222; | ||
| --bs-popover-header-color: #fff; | ||
| } | ||
|
|
||
| .popover .btn-close { | ||
| filter: var(--bs-btn-close-white-filter); | ||
| } | ||
| shiny-chat-message table td, | ||
| shiny-chat-message table th { | ||
| .querychat shiny-chat-message table td, | ||
| .querychat shiny-chat-message table th { | ||
| border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); | ||
| padding: 3px; | ||
| } | ||
|
|
||
| shiny-chat-message table td { | ||
| .querychat shiny-chat-message table td { | ||
| font-family: var(--bs-font-monospace); | ||
| } | ||
|
|
||
| #show_title:empty, | ||
| #show_query:empty { | ||
| /* Prevent empty title/query blocks from taking any space */ | ||
| border: 0; | ||
| padding: 0; | ||
| margin-bottom: 0; | ||
| } | ||
|
|
||
| #show_title:empty, | ||
| #show_query { | ||
| /* We can't affect the flex parent's gap, so instead we use a negative margin | ||
| to counteract it. In the case of #show_query, we don't even want the gap | ||
| even when it's showing, as it results in too much space between the two. */ | ||
| margin-top: calc(-1 * var(--bslib-mb-spacer)); | ||
| /* querychat takes up the full sidebar, so move the collapse toggle out of the way */ | ||
| .bslib-sidebar-layout:has(.querychat-sidebar):not(.sidebar-collapsed)>.collapse-toggle { | ||
| right: 4px; | ||
| top: 4px; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.