Chat CSS: fix ul, li, pre styles + remove redefinitions

This commit is contained in:
oobabooga 2023-06-18 01:56:43 -03:00
parent 0686a2e75f
commit 44f28830d1
7 changed files with 44 additions and 168 deletions

View file

@ -45,3 +45,46 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
#main button {
min-width: 0 !important;
}
/*****************************************************/
/*************** Chat box declarations ***************/
/*****************************************************/
.chat {
margin-left: auto;
margin-right: auto;
max-width: 800px;
height: calc(100vh - 296px);
overflow-y: auto;
padding-right: 20px;
display: flex;
flex-direction: column-reverse;
word-break: break-word;
overflow-wrap: anywhere;
padding-top: 1px;
}
.message-body li {
margin-top: 0.5em !important;
margin-bottom: 0.5em !important;
}
.message-body li > p {
display: inline !important;
}
.message-body ul, .message-body ol {
font-size: 15px !important;
}
.message-body pre {
margin-bottom: 1.25em !important;
}
.message-body code {
overflow-x: auto;
}
.message-body :not(pre) > code {
white-space: normal !important;
}