-
Notifications
You must be signed in to change notification settings - Fork 44.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix chat UI covering canvas when closed + update to add sending graph…
… data button with message
- Loading branch information
Showing
2 changed files
with
270 additions
and
120 deletions.
There are no files selected for viewing
271 changes: 169 additions & 102 deletions
271
autogpt_platform/frontend/src/components/OttoChatWidget.css
This file contains 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,103 +1,170 @@ | ||
.launcher-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
align-items: center; | ||
} | ||
|
||
.custom-launcher-button { | ||
background-color: #8b5cf6 !important; | ||
border: none !important; | ||
border-radius: 50% !important; | ||
color: white !important; | ||
cursor: pointer !important; | ||
height: 60px !important; | ||
padding: 18px !important; | ||
position: fixed !important; | ||
right: 35px !important; | ||
bottom: 15px !important; | ||
transition: all 0.2s ease-in-out !important; | ||
width: 60px !important; | ||
z-index: 999 !important; | ||
} | ||
|
||
.custom-launcher-button:hover { | ||
background-color: #7c3aed !important; | ||
transform: scale(1.1) !important; | ||
} | ||
|
||
.rcw-launcher { | ||
display: none !important; | ||
} | ||
|
||
.rcw-widget-container { | ||
height: 65vh !important; | ||
margin-bottom: 50px !important; | ||
border-radius: 10px !important; | ||
max-width: 610px !important; | ||
width: 100% !important; | ||
} | ||
|
||
.rcw-conversation-container { | ||
border-radius: 10px !important; | ||
background-color: white !important; | ||
border: none !important; | ||
} | ||
|
||
.rcw-header { | ||
background-color: #8b5cf6 !important; | ||
border-radius: 10px 10px 0 0 !important; | ||
padding: 0px !important; | ||
min-height: 0px !important; | ||
} | ||
|
||
.rcw-messages-container { | ||
background-color: white !important; | ||
padding: 12px 8px !important; | ||
max-width: 100% !important; | ||
overflow-x: hidden !important; | ||
font-size: 0.9rem !important; | ||
} | ||
|
||
.rcw-message { | ||
padding: 4px 8px !important; | ||
width: auto !important; | ||
max-width: 100% !important; | ||
display: flex !important; | ||
flex-direction: column !important; | ||
margin: 4px 0 !important; | ||
} | ||
|
||
.rcw-message-text { | ||
background-color: #f3f4f6 !important; | ||
color: #1f2937 !important; | ||
border-radius: 8px !important; | ||
padding: 8px !important; | ||
max-width: 100% !important; | ||
word-wrap: break-word !important; | ||
white-space: pre-wrap !important; | ||
overflow-wrap: break-word !important; | ||
line-height: 1.4 !important; | ||
overflow-x: auto !important; | ||
margin: 0 !important; | ||
} | ||
|
||
.rcw-message-text pre { | ||
max-width: 100% !important; | ||
overflow-x: auto !important; | ||
white-space: pre-wrap !important; | ||
word-wrap: break-word !important; | ||
margin: 8px 0 !important; | ||
} | ||
|
||
.rcw-message-text code { | ||
word-wrap: break-word !important; | ||
white-space: pre-wrap !important; | ||
display: block !important; | ||
width: 100% !important; | ||
} | ||
|
||
.rcw-client .rcw-message-text { | ||
background-color: #8b5cf6 !important; | ||
color: white !important; | ||
} | ||
|
||
.rcw-sender { | ||
background-color: white !important; | ||
padding: 10px !important; | ||
border-radius: 0 0 10px 10px !important; | ||
border-top: 1px solid #e5e7eb !important; | ||
} | ||
background-color: #8b5cf6 !important; | ||
border: none !important; | ||
border-radius: 50% !important; | ||
color: white !important; | ||
cursor: pointer !important; | ||
height: 60px !important; | ||
padding: 18px !important; | ||
position: fixed !important; | ||
right: 35px !important; | ||
bottom: 15px !important; | ||
transition: all 0.2s ease-in-out !important; | ||
width: 60px !important; | ||
z-index: 999 !important; | ||
display: flex !important; | ||
align-items: center !important; | ||
justify-content: center !important; | ||
} | ||
|
||
|
||
.custom-launcher-button:hover { | ||
background-color: #7c3aed !important; | ||
transform: scale(1.1) !important; | ||
} | ||
|
||
.capture-graph-button { | ||
width: 40px; | ||
height: 40px; | ||
color: #fff; | ||
background-color: #4b5563; | ||
border-radius: 50%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
transition: all 0.2s ease; | ||
border: none; | ||
outline: none; | ||
position: fixed !important; | ||
right: 35px !important; | ||
bottom: 100px !important; | ||
} | ||
|
||
.capture-graph-button:hover { | ||
background-color: #374151; | ||
transform: scale(1.05); | ||
} | ||
|
||
.capture-graph-button:focus { | ||
outline: 2px solid #60a5fa; | ||
outline-offset: 2px; | ||
} | ||
|
||
.capture-graph-button.active { | ||
background-color: #10b981; | ||
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10b981; | ||
} | ||
|
||
.capture-graph-button.active:hover { | ||
background-color: #059669; | ||
} | ||
|
||
.rcw-launcher { | ||
display: none !important; | ||
} | ||
|
||
.rcw-widget-container { | ||
height: 65vh !important; | ||
margin-bottom: 50px !important; | ||
border-radius: 10px !important; | ||
max-width: 610px !important; | ||
width: 100% !important; | ||
} | ||
|
||
.rcw-conversation-container { | ||
border-radius: 10px !important; | ||
background-color: white !important; | ||
border: none !important; | ||
} | ||
|
||
.rcw-header { | ||
background-color: #8b5cf6 !important; | ||
border-radius: 10px 10px 0 0 !important; | ||
padding: 0px !important; | ||
min-height: 0px !important; | ||
} | ||
|
||
.rcw-messages-container { | ||
background-color: white !important; | ||
padding: 12px 8px !important; | ||
max-width: 100% !important; | ||
overflow-x: hidden !important; | ||
font-size: 0.9rem !important; | ||
} | ||
|
||
.rcw-message { | ||
padding: 4px 8px !important; | ||
width: auto !important; | ||
max-width: 100% !important; | ||
display: flex !important; | ||
flex-direction: column !important; | ||
margin: 4px 0 !important; | ||
} | ||
|
||
.rcw-message-text { | ||
background-color: #f3f4f6 !important; | ||
color: #1f2937 !important; | ||
border-radius: 8px !important; | ||
padding: 8px !important; | ||
max-width: 100% !important; | ||
word-wrap: break-word !important; | ||
white-space: pre-wrap !important; | ||
overflow-wrap: break-word !important; | ||
line-height: 1.4 !important; | ||
overflow-x: auto !important; | ||
margin: 0 !important; | ||
} | ||
|
||
.rcw-message-text pre { | ||
max-width: 100% !important; | ||
overflow-x: auto !important; | ||
white-space: pre-wrap !important; | ||
word-wrap: break-word !important; | ||
margin: 8px 0 !important; | ||
} | ||
|
||
.rcw-message-text code { | ||
word-wrap: break-word !important; | ||
white-space: pre-wrap !important; | ||
display: block !important; | ||
width: 100% !important; | ||
} | ||
|
||
.rcw-client .rcw-message-text { | ||
background-color: #8b5cf6 !important; | ||
color: white !important; | ||
} | ||
|
||
.rcw-sender { | ||
background-color: white !important; | ||
padding: 10px !important; | ||
border-radius: 0 0 10px 10px !important; | ||
border-top: 1px solid #e5e7eb !important; | ||
} | ||
|
||
.rcw-send { | ||
display: none !important; | ||
} | ||
|
||
.rcw-widget-container.rcw-close-widget-container { | ||
pointer-events: none !important; | ||
} | ||
|
||
.rcw-widget-container.rcw-close-widget-container .rcw-conversation-container, | ||
.rcw-widget-container.rcw-close-widget-container .rcw-sender { | ||
pointer-events: none !important; | ||
visibility: hidden !important; | ||
display: none !important; | ||
} | ||
|
||
.rcw-widget-container.rcw-close-widget-container .launcher-container { | ||
pointer-events: all !important; | ||
} |
Oops, something went wrong.