Skip to content
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

[Doc] Fix busted AI assistant CSS #41452

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions doc/source/_static/css/assistant.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
transform: translate(-50%, -20%);
width: 50%;
height: 70%;
background-color: var(--pst-color-surface);
background-color: var(--pst-color-background);
border: 1px solid var(--pst-color-border);
border-radius: 10px;
box-shadow: 0 5px 10px var(--pst-color-shadow);
Expand Down Expand Up @@ -69,7 +69,10 @@

#searchBar {
border: 1px solid var(--pst-color-border);
background-color: var(--pst-color-on-surface);
background-color: var(--pst-color-surface);
margin: 0em 1em 0em 0em;
border-radius: 4px;
color: var(--pst-color-text-base);
}

.chatHeader {
Expand Down Expand Up @@ -100,7 +103,7 @@
border-radius: 10px;
margin-top: 10px;
margin-bottom: 10px;
background-color: var(--pst-color-on-surface);
background-color: var(--pst-color-surface);
max-height: calc(100% - 20px);
overflow-y: auto;
}
Expand All @@ -112,8 +115,9 @@
resize: none;
}

.searchBtn {
white-space: nowrap;
#searchBtn {
white-space: nowrap;
border-radius: 4px;
}

.input-group {
Expand Down
4 changes: 1 addition & 3 deletions doc/source/_static/js/assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ chatPopupDiv.innerHTML = `
<div class="chatContentContainer">
<div class="input-group">
<textarea id="searchBar" class="input" rows="3" placeholder="Do not include any personal or confidential information."></textarea>
<div class="input-group-append">
<button id="searchBtn" class="btn btn-primary">Ask AI</button>
</div>
<button id="searchBtn" class="btn btn-primary">Ask AI</button>
</div>
<div id="result"></div>
</div>
Expand Down
Loading