Skip to content

Commit 7231951

Browse files
committed
chore: delete more pages and fix text colors
1 parent d0fa2a8 commit 7231951

File tree

26 files changed

+28
-756
lines changed

26 files changed

+28
-756
lines changed

apps/dashboard/src/@/components/chat/CustomChats.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,19 +325,15 @@ function StyledMarkdownRenderer(props: {
325325
}) {
326326
return (
327327
<MarkdownRenderer
328-
className="text-foreground [&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
328+
className="[&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
329329
code={{
330330
className: "bg-transparent",
331331
ignoreFormattingErrors: true,
332332
}}
333333
inlineCode={{ className: "border-none" }}
334-
li={{ className: "text-foreground" }}
335334
markdownText={props.text}
336335
p={{
337-
className:
338-
props.type === "assistant"
339-
? "text-foreground"
340-
: "text-foreground leading-normal",
336+
className: props.type === "assistant" ? "" : "leading-normal",
341337
}}
342338
skipHtml
343339
/>

apps/nebula/src/@/components/blocks/MarkdownRenderer/markdown-renderer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export const MarkdownRenderer: React.FC<{
146146
li: ({ children: c, ...props }) => (
147147
<li
148148
className={cn(
149-
"mb-1.5 text-muted-foreground leading-loose [&>p]:m-0",
150149
markdownProps.li?.className,
150+
"mb-1.5 text-muted-foreground leading-loose [&>p]:m-0",
151151
)}
152152
{...cleanedProps(props)}
153153
>
@@ -156,16 +156,16 @@ export const MarkdownRenderer: React.FC<{
156156
),
157157
ol: (props) => (
158158
<ol
159-
className="mb-4 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
160159
{...cleanedProps(props)}
160+
className="mb-4 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
161161
/>
162162
),
163163

164164
p: (props) => (
165165
<p
166166
className={cn(
167-
"mb-4 text-muted-foreground leading-loose",
168167
markdownProps.p?.className,
168+
"mb-4 text-muted-foreground leading-loose",
169169
)}
170170
{...cleanedProps(props)}
171171
/>
@@ -200,8 +200,8 @@ export const MarkdownRenderer: React.FC<{
200200
ul: (props) => {
201201
return (
202202
<ul
203-
className="mb-4 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
204203
{...cleanedProps(props)}
204+
className="mb-4 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
205205
/>
206206
);
207207
},

apps/nebula/src/app/(app)/components/Chats.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,15 @@ function StyledMarkdownRenderer(props: {
401401
}) {
402402
return (
403403
<MarkdownRenderer
404-
className="text-foreground [&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
404+
className="[&>*:first-child]:mt-0 [&>*:first-child]:border-none [&>*:first-child]:pb-0 [&>*:last-child]:mb-0"
405405
code={{
406406
className: "bg-transparent",
407407
ignoreFormattingErrors: true,
408408
}}
409409
inlineCode={{ className: "border-none" }}
410-
li={{ className: "text-foreground" }}
411410
markdownText={props.text}
412411
p={{
413-
className:
414-
props.type === "assistant"
415-
? "text-foreground"
416-
: "text-foreground leading-normal",
412+
className: props.type === "assistant" ? "" : "leading-normal",
417413
}}
418414
skipHtml
419415
/>

apps/portal/src/app/wallets/blockchain-api/page.mdx

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)