-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6585 from oobabooga/dev
Merge dev branch
- Loading branch information
Showing
34 changed files
with
1,199 additions
and
431 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -16,6 +16,6 @@ | |
} | ||
|
||
.message { | ||
padding-bottom: 30px; | ||
padding-bottom: 2em; | ||
grid-template-columns: 70px minmax(0, 1fr); | ||
} |
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
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,74 +1,101 @@ | ||
.chat { | ||
background: transparent; | ||
padding: 24px 19px; | ||
padding-right: 19px !important; | ||
padding: 0; | ||
padding-top: 0; | ||
} | ||
|
||
.chat > .messages { | ||
padding-top: 18px !important; | ||
.chat > .messages:first-child { | ||
padding-top: 0 !important; | ||
} | ||
|
||
.message { | ||
display: grid; | ||
grid-template-columns: 60px 1fr; | ||
padding-bottom: 25px; | ||
font-size: 15px; | ||
font-family: 'Noto Sans', Helvetica, Arial, sans-serif; | ||
line-height: 24px; | ||
.chat > .messages > :last-child { | ||
margin-bottom: 1.7rem !important; | ||
} | ||
|
||
.message:first-child { | ||
padding-top: 0; | ||
.chat .message-body p, .chat .message-body li { | ||
font-size: 1rem !important; | ||
line-height: 28px !important; | ||
} | ||
|
||
.username { | ||
display: none; | ||
.dark .chat .message-body p, | ||
.dark .chat .message-body li, | ||
.dark .chat .message-body q { | ||
color: #d1d5db !important; | ||
} | ||
|
||
.message-body p, .message-body li { | ||
font-size: 15px !important; | ||
line-height: 24px !important; | ||
.chat .message-body p, | ||
.chat .message-body ul, | ||
.chat .message-body ol { | ||
margin-top: 1.25em !important; | ||
margin-bottom: 1.25em !important; | ||
} | ||
|
||
.message-body p, .chat .message-body ul, .chat .message-body ol { | ||
margin-bottom: 16px !important; | ||
.chat .message-body p:first-child, | ||
.chat .message-body ul:first-child, | ||
.chat .message-body ol:first-child { | ||
margin-top: 0 !important; | ||
} | ||
|
||
.message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child { | ||
.chat .message-body p:last-child, | ||
.chat .message-body ul:last-child, | ||
.chat .message-body ol:last-child { | ||
margin-bottom: 0 !important; | ||
} | ||
|
||
.gradio-container .chat .assistant-message { | ||
padding: 20px; | ||
.chat .message-body li { | ||
margin-top: 1.25em !important; | ||
margin-bottom: 1.25em !important; | ||
} | ||
|
||
.user-message, .assistant-message { | ||
font-family: Inter, Helvetica, Arial, sans-serif; | ||
} | ||
|
||
.message:first-child { | ||
padding-top: 0; | ||
} | ||
|
||
.username { | ||
display: none; | ||
} | ||
|
||
.chat .user-message { | ||
padding: 1.5rem 1rem; | ||
border-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
|
||
.chat .assistant-message { | ||
background: #f4f4f4; | ||
margin-top: 9px !important; | ||
margin-bottom: 12px !important; | ||
border-radius: 7px; | ||
border: 1px solid var(--border-color-primary); | ||
padding: 1.5rem 1rem; | ||
border-radius: 0; | ||
border: 0; | ||
} | ||
|
||
.dark .chat .user-message { | ||
background: transparent; | ||
} | ||
|
||
.dark .chat .assistant-message { | ||
background: var(--color-grey-800); | ||
background: var(--light-gray); | ||
} | ||
|
||
.gradio-container .chat .user-message { | ||
padding: 20px; | ||
padding-left: 0; | ||
padding-right: 0; | ||
background-color: transparent; | ||
border-radius: 8px; | ||
border-bottom-right-radius: 0; | ||
.chat .user-message .text, | ||
.chat .assistant-message .text { | ||
max-width: 40.25rem; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.gradio-container .chat .assistant-message:last-child, .gradio-container .chat .user-message:last-child { | ||
margin-bottom: 0 !important; | ||
/* Create space between two assistant messages in a row */ | ||
.assistant-message + .assistant-message { | ||
margin-top: 1.5rem; | ||
} | ||
|
||
code { | ||
pre > code { | ||
background-color: #f3f4f6 !important; | ||
} | ||
|
||
.dark code { | ||
.dark pre > code { | ||
background-color: #1f2937 !important; | ||
} |
Oops, something went wrong.