From 3f3cd4fbe4974cdcd01f083fcc97b66eb29ef84b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:26:57 -0800 Subject: [PATCH] UI: improve list style in chat modes --- css/html_instruct_style.css | 5 ----- css/main.css | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/css/html_instruct_style.css b/css/html_instruct_style.css index acff04f1..5a439304 100644 --- a/css/html_instruct_style.css +++ b/css/html_instruct_style.css @@ -22,17 +22,12 @@ .message-body p, .message-body li { font-size: 15px !important; line-height: 24px !important; - list-style-position: outside; } .message-body p, .chat .message-body ul, .chat .message-body ol { margin-bottom: 16px !important; } -.chat .message-body ul, .chat .message-body ol { - padding-inline-start: 2em; -} - .message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child { margin-bottom: 0 !important; } diff --git a/css/main.css b/css/main.css index a53f99d0..33feb179 100644 --- a/css/main.css +++ b/css/main.css @@ -364,6 +364,14 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { padding-bottom: 0 !important; } +.message-body li { + list-style-position: outside; +} + +.chat .message-body ul, .chat .message-body ol { + padding-inline-start: 2em; +} + .message-body li:not(:last-child) { margin-top: 0 !important; margin-bottom: 2px !important;