Content-Length: 412728 | pFad | http://github.com/postgresml/postgresml/commit/1dc28ea0acc330b4bbc0291840efa3f4d9f4ebbe

EA Touched up the chatbot (#1115) · postgresml/postgresml@1dc28ea · GitHub
Skip to content

Commit 1dc28ea

Browse files
authored
Touched up the chatbot (#1115)
1 parent cc1ff99 commit 1dc28ea

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

pgml-dashboard/src/components/chatbot/chatbot.scss

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ div[data-controller="chatbot"] {
2323
padding-top: 0.85rem;
2424
margin-bottom: 1rem;
2525
display: none;
26+
white-space: nowrap;
2627
}
2728

2829
#chatbot-change-the-brain-spacer {
@@ -33,6 +34,11 @@ div[data-controller="chatbot"] {
3334
.chatbot-knowledge-base-option-label {
3435
cursor: pointer;
3536
padding: 0.5rem;
37+
transition: all 0.1s;
38+
}
39+
40+
.chatbot-brain-option-label:hover {
41+
background-color: #{$gray-800};
3642
}
3743

3844
.chatbot-brain-provider {
@@ -106,6 +112,7 @@ div[data-controller="chatbot"] {
106112

107113
#chatbot-question-input-button-wrapper {
108114
background-color: #{$gray-600};
115+
cursor: pointer;
109116
}
110117

111118
#chatbot-question-input-button {
@@ -236,15 +243,19 @@ div[data-controller="chatbot"] {
236243
}
237244
}
238245

239-
#chatbot-alerts-wrapper {
240-
position: fixed;
241-
top: 105px;
242-
right: 15px;
243-
max-width: 500px;
244-
z-index: 100;
246+
#chatbot-expand-contract-image-wrapper {
247+
background-color: #444444;
248+
cursor: pointer;
249+
transition: all 0.1s;
250+
}
251+
252+
#chatbot-expand-contract-image-wrapper:hover {
253+
background-color: #2b2b2b;
245254
}
246255
}
247256

257+
258+
248259
div[data-controller="chatbot"].chatbot-expanded {
249260
position: fixed;
250261
top: 100px;

pgml-dashboard/src/components/chatbot/template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h5 id="chatbot-change-the-brain-title">Knowledge Base:</h5>
2121
<% } %>
2222
/>
2323
<label
24-
class="chatbot-brain-option-label rounded-2"
24+
class="chatbot-brain-option-label rounded-2 w-100"
2525
for="chatbot-knowledge-base-option<%= index %>"
2626
data-action="chatbot#handleKnowledgeBaseChange"
2727
>
@@ -102,8 +102,8 @@ <h5 id="knowledge-base-title">Knowledge Base:</h5>
102102
<div id="chatbot-right-column" class="flex-grow-1 d-flex flex-column overflow-hidden">
103103
<div class="d-flex justify-content-between align-items-center pt-3 pb-3 pe-3 m-0">
104104
<h3 id="chatbot-chatbot-title">Chatbot</h3>
105-
<div class="p-1 rounded-2" style="background-color: #444444; cursor: pointer;" data-action="click->chatbot#handleExpandClick">
106-
<img id="chatbot-expand-contract-image" class="" width="28px" height="28px" src="/dashboard/static/images/icons/arrow_expanded.svg"/>
105+
<div id="chatbot-expand-contract-image-wrapper" class="p-1 rounded-2" data-action="click->chatbot#handleExpandClick">
106+
<img id="chatbot-expand-contract-image" width="28px" height="28px" src="/dashboard/static/images/icons/arrow_expanded.svg"/>
107107
</div>
108108
</div>
109109

@@ -125,7 +125,7 @@ <h3 id="chatbot-chatbot-title">Chatbot</h3>
125125

126126
<div id="chatbot-question-textarea-wrapper" class="d-flex position-relative">
127127
<textarea id="chatbot-question-input" class="flex-grow-1 text-white rounded-start-2 z-1" rows="1" placeholder="Send a message" data-action="keydown.enter->chatbot#handleEnter"></textarea>
128-
<div id="chatbot-question-input-button-wrapper" class="p-2 d-flex align-items-end rounded-end-2 z-1">
128+
<div id="chatbot-question-input-button-wrapper" class="p-2 d-flex align-items-end rounded-end-2 z-1" data-action="click->chatbot#handleEnter">
129129
<div id="chatbot-question-input-button" class=""></div>
130130
</div>
131131
<div id="chatbot-question-input-border" class="position-absolute rounded-2"></div>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/commit/1dc28ea0acc330b4bbc0291840efa3f4d9f4ebbe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy