2023-04-05 16:49:59 +02:00
|
|
|
.chat {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: 800px;
|
2023-05-22 05:55:33 +02:00
|
|
|
height: calc(100vh - 296px);
|
2023-04-05 16:49:59 +02:00
|
|
|
overflow-y: auto;
|
|
|
|
padding-right: 20px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
2023-04-11 19:41:29 +02:00
|
|
|
word-break: break-word;
|
|
|
|
overflow-wrap: anywhere;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 60px 1fr;
|
|
|
|
padding-bottom: 25px;
|
|
|
|
font-size: 15px;
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
|
|
line-height: 1.428571429;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-05-25 18:12:34 +02:00
|
|
|
.message-body {
|
|
|
|
}
|
2023-04-05 16:49:59 +02:00
|
|
|
|
|
|
|
.message-body p {
|
|
|
|
font-size: 15px !important;
|
2023-05-05 04:41:00 +02:00
|
|
|
line-height: 1.75 !important;
|
2023-05-05 05:36:15 +02:00
|
|
|
margin-bottom: 1.25em !important;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|
|
|
|
|
2023-04-06 21:15:04 +02:00
|
|
|
.message-body li {
|
|
|
|
margin-top: 0.5em !important;
|
|
|
|
margin-bottom: 0.5em !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-body li > p {
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
|
2023-04-11 19:41:29 +02:00
|
|
|
.message-body code {
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
2023-05-25 18:12:34 +02:00
|
|
|
|
2023-04-11 19:41:29 +02:00
|
|
|
.message-body :not(pre) > code {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
|
|
|
|
2023-04-05 16:49:59 +02:00
|
|
|
.dark .message-body p em {
|
2023-05-03 04:38:51 +02:00
|
|
|
color: rgb(198, 202, 214) !important;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-body p em {
|
|
|
|
color: rgb(110, 110, 110) !important;
|
|
|
|
}
|
|
|
|
|
2023-04-06 17:00:20 +02:00
|
|
|
.gradio-container .chat .assistant-message {
|
2023-05-25 18:12:34 +02:00
|
|
|
padding: 15px;
|
|
|
|
border-radius: 20px;
|
|
|
|
background-color: #0000000f;
|
|
|
|
margin-top: 9px !important;
|
|
|
|
margin-bottom: 18px !important;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|
|
|
|
|
2023-04-06 17:00:20 +02:00
|
|
|
.gradio-container .chat .user-message {
|
2023-05-25 18:12:34 +02:00
|
|
|
padding: 15px;
|
|
|
|
border-radius: 20px;
|
|
|
|
margin-bottom: 9px !important;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|
|
|
|
|
2023-04-06 17:00:20 +02:00
|
|
|
.dark .chat .assistant-message {
|
2023-05-25 18:12:34 +02:00
|
|
|
background-color: #374151;
|
2023-06-06 12:00:00 +02:00
|
|
|
border: 1px solid #4b5563;
|
2023-05-05 17:02:45 +02:00
|
|
|
}
|
|
|
|
|
2023-06-06 12:00:00 +02:00
|
|
|
.dark .chat .user-message {
|
|
|
|
background-color: #111827;
|
|
|
|
border: 1px solid #4b5563;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-05-05 17:02:45 +02:00
|
|
|
code {
|
2023-05-25 18:12:34 +02:00
|
|
|
background-color: white !important;
|
2023-05-05 17:02:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.dark code {
|
2023-05-25 18:12:34 +02:00
|
|
|
background-color: #1a212f !important;
|
2023-04-05 16:49:59 +02:00
|
|
|
}
|