From 4ebdd4a75c86b579b9c7fd6db44ef5e746dcaf0d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 16 Oct 2026 15:02:13 +0400 Subject: [PATCH] refac --- src/app.css | 14 +++++++++++++- .../chat/FileNav/MarkdownDocument.svelte | 4 +--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/app.css b/src/app.css index 7545ccb1af..d5a7f782ae 100644 --- a/src/app.css +++ b/src/app.css @@ -117,7 +117,19 @@ textarea::-webkit-scrollbar-corner { } .markdown-prose { - @apply prose prose-sm dark:prose-invert max-w-none break-words !text-[0.9375rem] font-normal leading-relaxed prose-p:mt-0 prose-p:mb-2 prose-p:font-normal prose-p:leading-relaxed prose-headings:mt-2 prose-headings:mb-1 prose-headings:font-medium prose-headings:leading-snug prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-strong:font-medium prose-code:before:content-none prose-code:after:content-none prose-ul:my-2 prose-ol:my-2 prose-li:my-0.5 prose-li:font-normal prose-pre:my-3 prose-table:my-0 prose-blockquote:my-3 prose-blockquote:font-normal prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850/30 prose-img:my-2 [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_p:first-child]:mt-0 [&_h1:first-child]:mt-0 [&_h2:first-child]:mt-0 [&_h3:first-child]:mt-0 [&_h4:first-child]:mt-0 [&_h5:first-child]:mt-0 [&_h6:first-child]:mt-0; + @apply prose prose-sm dark:prose-invert max-w-none break-words !text-[0.9375rem] font-normal leading-relaxed prose-p:mt-0 prose-p:mb-2 prose-p:font-normal prose-p:leading-relaxed prose-headings:mt-2 prose-headings:mb-1 prose-headings:font-medium prose-headings:leading-snug prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-strong:font-medium prose-code:before:content-none prose-code:after:content-none prose-ul:my-2 prose-ol:my-2 prose-li:my-0.5 prose-li:font-normal prose-pre:my-3 prose-table:my-0 prose-blockquote:text-[0.8125rem] prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850/30 prose-img:my-2 [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_p:first-child]:mt-0 [&_h1:first-child]:mt-0 [&_h2:first-child]:mt-0 [&_h3:first-child]:mt-0 [&_h4:first-child]:mt-0 [&_h5:first-child]:mt-0 [&_h6:first-child]:mt-0; +} + +.markdown-prose, +.document-markdown { + @apply prose-blockquote:my-2 prose-blockquote:border-s-2 prose-blockquote:border-gray-200 prose-blockquote:dark:border-gray-700 prose-blockquote:ps-3 prose-blockquote:pe-0 prose-blockquote:leading-relaxed prose-blockquote:not-italic prose-blockquote:font-normal prose-blockquote:text-gray-600 prose-blockquote:dark:text-gray-400 prose-blockquote:[&>:first-child]:mt-0 prose-blockquote:[&>:last-child]:mb-0; +} + +.markdown-prose :where(blockquote p:first-of-type)::before, +.markdown-prose :where(blockquote p:last-of-type)::after, +.document-markdown :where(blockquote p:first-of-type)::before, +.document-markdown :where(blockquote p:last-of-type)::after { + content: none; } .markdown-prose-sm { diff --git a/src/lib/components/chat/FileNav/MarkdownDocument.svelte b/src/lib/components/chat/FileNav/MarkdownDocument.svelte index 786f6d2e3e..213a64bb1e 100644 --- a/src/lib/components/chat/FileNav/MarkdownDocument.svelte +++ b/src/lib/components/chat/FileNav/MarkdownDocument.svelte @@ -229,9 +229,7 @@ margin-block: 0.125rem; } .document-markdown :global(blockquote) { - margin: 0.75rem 0; - font-style: normal; - font-weight: 400; + font-size: 0.75rem; } .document-markdown :global(strong) { font-weight: 600;