mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 22:27:29 +00:00
Standardize margins and paddings across all chat styles
This commit is contained in:
parent
e8266b0356
commit
86cb5e0587
6 changed files with 158 additions and 12 deletions
|
|
@ -52,10 +52,6 @@
|
|||
font-weight: 500;
|
||||
}
|
||||
|
||||
.message-body p, .chat .message-body ul, .chat .message-body ol {
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
.dark .message-body p em {
|
||||
color: rgb(138 138 138) !important;
|
||||
}
|
||||
|
|
@ -64,3 +60,30 @@
|
|||
color: rgb(110 110 110) !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Standard spacing */
|
||||
.chat .message-body :is(p, ul, ol) {
|
||||
margin: 1.25em 0 !important;
|
||||
}
|
||||
|
||||
.chat .message-body :is(p, ul, ol):first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
.chat .message-body :is(p, ul, ol):last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.chat .message-body ul, .chat .message-body ol {
|
||||
padding-inline-start: 2em;
|
||||
}
|
||||
|
||||
.message-body li {
|
||||
list-style-position: outside;
|
||||
margin-top: 0.5em !important;
|
||||
margin-bottom: 0.5em !important;
|
||||
}
|
||||
|
||||
.message-body li > p {
|
||||
display: inline !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue