From 64e81392f28f1d1d56108c7e8a4850733e5fce6f Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 19 Feb 2024 22:55:58 -0500 Subject: [PATCH] =?UTF-8?q?=E2=AC=A4=20style:=20Uniform=20Display=20of=20R?= =?UTF-8?q?esult-Streaming=20Cursor=20(#1842)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/style.css | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/client/src/style.css b/client/src/style.css index 0d17e88030..40d960af77 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -1928,7 +1928,7 @@ html { .result-streaming>:not(ol):not(ul):not(pre):last-child:after, .result-streaming>pre:last-child code:after { - display: inline-block; /* Add this line */ + display: inline-block; content:"⬤"; width: 12px; height: 12px; @@ -1939,11 +1939,6 @@ html { font-size: 0.5rem; } -.result-streaming>pre:last-child code { - background: url('path-to-circle-image') no-repeat right center; - padding-right: 1em; /* Adjust as necessary */ -} - @supports (selector(:has(*))) { .result-streaming>ol:last-child>li:last-child>ol:last-child>li:last-child:after, .result-streaming>ol:last-child>li:last-child>ol:last-child>li:last-child>ol:last-child>li:last-child:after, @@ -1962,28 +1957,44 @@ html { font-family:system-ui,Inter,Söhne Circle,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; line-height:normal; margin-left:.25rem; - vertical-align:baseline + vertical-align:middle; + font-size: 0.5rem; + display: inline-block; + width: 12px; + height: 12px; } .result-streaming>ul:last-child>li:last-child:not(:has(*>li)):after { content:"⬤"; font-family:system-ui,Inter,Söhne Circle,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; line-height:normal; margin-left:.25rem; - vertical-align:baseline + vertical-align:middle; + font-size: 0.5rem; + display: inline-block; + width: 12px; + height: 12px; } .result-streaming>ol:last-child>li:last-child[*|\:not-has\(]:after { content:"⬤"; font-family:system-ui,Inter,Söhne Circle,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; line-height:normal; margin-left:.25rem; - vertical-align:baseline + vertical-align:middle; + font-size: 0.5rem; + display: inline-block; + width: 12px; + height: 12px; } .result-streaming>ol:last-child>li:last-child:not(:has(*>li)):after { content:"⬤"; font-family:system-ui,Inter,Söhne Circle,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; line-height:normal; margin-left:.25rem; - vertical-align:baseline + vertical-align:middle; + font-size: 0.5rem; + display: inline-block; + width: 12px; + height: 12px; } } @supports not (selector(:has(*))) { @@ -1993,6 +2004,10 @@ html { font-family:system-ui,Inter,Söhne Circle,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; line-height:normal; margin-left:.25rem; - vertical-align:baseline + vertical-align:middle; + font-size: 0.5rem; + display: inline-block; + width: 12px; + height: 12px; } } \ No newline at end of file